public class BinaryPropertyState extends EmptyPropertyState
| Constructor and Description |
|---|
BinaryPropertyState(String name,
org.apache.jackrabbit.oak.api.Blob value) |
emptyProperty, getNamepublic BinaryPropertyState(@Nonnull String name, @Nonnull org.apache.jackrabbit.oak.api.Blob value)
public static org.apache.jackrabbit.oak.api.PropertyState binaryProperty(@Nonnull String name, @Nonnull byte[] value)
PropertyState from an array of bytes.name - The name of the property statevalue - The value of the property stateType.BINARYpublic static org.apache.jackrabbit.oak.api.PropertyState binaryProperty(@Nonnull String name, @Nonnull String value)
PropertyState from an array of bytes.name - The name of the property statevalue - The value of the property stateType.BINARYpublic static org.apache.jackrabbit.oak.api.PropertyState binaryProperty(@Nonnull String name, @Nonnull org.apache.jackrabbit.oak.api.Blob value)
PropertyState from a Blob.name - The name of the property statevalue - The value of the property stateType.BINARYpublic static org.apache.jackrabbit.oak.api.PropertyState binaryProperty(@Nonnull String name, @Nonnull Value value) throws RepositoryException
PropertyState from a Value.name - The name of the property statevalue - The value of the property stateType.BINARYRepositoryExceptionpublic org.apache.jackrabbit.oak.api.Blob getValue()
public Conversions.Converter getConverter()
public long size()
size in interface org.apache.jackrabbit.oak.api.PropertyStategetString().length()public org.apache.jackrabbit.oak.api.Type<?> getType()
public boolean isArray()
isArray in interface org.apache.jackrabbit.oak.api.PropertyStateisArray in class EmptyPropertyStatefalse@Nonnull public <S> S getValue(org.apache.jackrabbit.oak.api.Type<S> type)
getValue in interface org.apache.jackrabbit.oak.api.PropertyStategetValue in class EmptyPropertyStatetype.isArray() is true.IllegalArgumentException - if type is not one of the
values defined in Type.@Nonnull public <S> S getValue(org.apache.jackrabbit.oak.api.Type<S> type, int index)
getValue in interface org.apache.jackrabbit.oak.api.PropertyStategetValue in class EmptyPropertyStateIllegalArgumentException - if type.isArray is trueIndexOutOfBoundsException - if index != 0public long size(int index)
size in interface org.apache.jackrabbit.oak.api.PropertyStatesize in class EmptyPropertyStatesizeIndexOutOfBoundsException - if index != 0public int count()
count in interface org.apache.jackrabbit.oak.api.PropertyStatecount in class EmptyPropertyState1Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.