public class SegmentPropertyState extends java.lang.Object implements PropertyState
Depending on the property type, this is a record of type "VALUE" or a record of type "LIST" (for arrays).
| Constructor and Description |
|---|
SegmentPropertyState(RecordId id,
org.apache.jackrabbit.oak.plugins.segment.PropertyTemplate template) |
| Modifier and Type | Method and Description |
|---|---|
int |
count()
The number of values of this property.
|
boolean |
equals(java.lang.Object object) |
java.lang.String |
getName() |
RecordId |
getRecordId()
Returns the identifier of this record.
|
Type<?> |
getType()
Determine the type of this property
|
<T> T |
getValue(Type<T> type)
Value of this property.
|
<T> T |
getValue(Type<T> type,
int index)
Value at the given
index. |
int |
hashCode() |
boolean |
isArray()
Determine whether the value is an array of atoms
|
long |
size()
The size of the value of this property.
|
long |
size(int index)
The size of the value at the given
index. |
java.lang.String |
toString() |
public SegmentPropertyState(RecordId id, org.apache.jackrabbit.oak.plugins.segment.PropertyTemplate template)
public java.lang.String getName()
getName in interface PropertyStatepublic Type<?> getType()
PropertyStategetType in interface PropertyStatepublic boolean isArray()
PropertyStateisArray in interface PropertyStatetrue if and only if the value is an array of atoms.public int count()
PropertyState1 for atoms.count in interface PropertyStatepublic <T> T getValue(Type<T> type)
PropertyStatetype
argument. If type.isArray() is true, this method returns an
Iterable of the base type of
type containing all values of this property.
If the target type is not the same as the type of this property an attempt
is made to convert the value to the target type. If the conversion fails an
exception is thrown. The actual conversions which take place are those defined
in the Conversions class.getValue in interface PropertyStatetype - target typepublic long size()
PropertyStatesize in interface PropertyStatepublic <T> T getValue(Type<T> type, int index)
PropertyStateindex.
The type of the return value is determined by the target type
argument.
If the target type is not the same as the type of this property an attempt
is made to convert the value to the target type. If the conversion fails an
exception is thrown. The actual conversions which take place are those defined
in the Conversions class.getValue in interface PropertyStatetype - target typeindexpublic long size(int index)
PropertyStateindex.size in interface PropertyStateindex.public boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
public RecordId getRecordId()
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"