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(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 |
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, waitgetTypepublic 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 statepublic boolean isArray()
true@Nonnull public <T> T getValue(org.apache.jackrabbit.oak.api.Type<T> type)
type.isArray() is true.IllegalArgumentException - type.isArray() is false.@Nonnull 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–2017 The Apache Software Foundation. All rights reserved.