public abstract class EmptyPropertyState extends AbstractPropertyState
PropertyState implementations
providing default implementation which correspond to a property
without any value.| Modifier | Constructor and Description |
|---|---|
protected |
EmptyPropertyState(@NotNull String name)
Create a new property state with the given
name |
| Modifier and Type | Method and Description |
|---|---|
int |
count() |
static org.apache.jackrabbit.oak.api.PropertyState |
emptyProperty(String name,
org.apache.jackrabbit.oak.api.Type<?> type)
Create an empty
PropertyState |
@NotNull String |
getName() |
<T> T |
getValue(org.apache.jackrabbit.oak.api.Type<T> type) |
<T> T |
getValue(org.apache.jackrabbit.oak.api.Type<T> type,
int index) |
boolean |
isArray() |
long |
size() |
long |
size(int index) |
equal, equals, hashCode, hashCode, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeprotected EmptyPropertyState(@NotNull
@NotNull String name)
namename - The name of the property state.public static org.apache.jackrabbit.oak.api.PropertyState emptyProperty(String name, org.apache.jackrabbit.oak.api.Type<?> type)
PropertyStatename - The name of the property statetype - The type of the property stateIllegalArgumentException - if @code type.isArray()} is false.@NotNull public @NotNull String getName()
public boolean isArray()
true@NotNull public <T> T getValue(org.apache.jackrabbit.oak.api.Type<T> type)
type.isArray() is true.IllegalStateException - type.isArray() is false.@NotNull public <T> T getValue(org.apache.jackrabbit.oak.api.Type<T> type, int index)
IndexOutOfBoundsException - alwayspublic long size()
IllegalStateException - alwayspublic long size(int index)
IndexOutOfBoundsException - alwayspublic int count()
0Copyright © 2012–2021 The Apache Software Foundation. All rights reserved.