|
ModeShape Distribution 3.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jcr.value.basic.BasicProperty
@Immutable public abstract class BasicProperty
An abstract Property implementation.
| Constructor Summary | |
|---|---|
BasicProperty(Name name)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Property that)
|
boolean |
equals(Object obj)
|
Name |
getName()
Get the name of the property. |
String |
getString()
Get the string form of the object. |
String |
getString(NamespaceRegistry namespaceRegistry)
Get the string form of the object, using the supplied namespace registry to convert any namespace URIs to prefixes. |
String |
getString(NamespaceRegistry namespaceRegistry,
TextEncoder encoder)
Get the encoded string form of the object, using the supplied namespace registry to convert the any namespace URIs to prefixes. |
String |
getString(NamespaceRegistry namespaceRegistry,
TextEncoder encoder,
TextEncoder delimiterEncoder)
Get the encoded string form of the object, using the supplied namespace registry to convert the names' namespace URIs to prefixes and the supplied encoder to encode characters, and using the second delimiter to encode (or convert) the delimiter used between the namespace prefix and the local part of any names. |
String |
getString(TextEncoder encoder)
Get the encoded string form of the object, using the supplied encoder to encode characters. |
Iterator<?> |
getValues()
Obtain the property's values in their natural form. |
Object[] |
getValuesAsArray()
Obtain the property's values as an array of objects in their natural form. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.modeshape.jcr.value.Property |
|---|
getFirstValue, isEmpty, isMultiple, isReference, isSingle, size |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Constructor Detail |
|---|
public BasicProperty(Name name)
name - | Method Detail |
|---|
public Name getName()
Property
getName in interface Propertypublic Iterator<?> getValues()
Propertyiterator().
A valid iterator is returned if the property has single valued or multi-valued.
The resulting iterator is immutable, and all property values are immutable.
getValues in interface PropertyProperty.getFirstValue(),
Iterable.iterator(),
Property.getValuesAsArray(),
ValueFactory.create(Iterator)public Object[] getValuesAsArray()
Property
A valid array is return if the property has single valued or multi-valued, or a
null value is returned if the property is empty.
The resulting array is a copy, guaranteeing immutability for the property.
getValuesAsArray in interface PropertyProperty.getFirstValue(),
Iterable.iterator(),
Property.getValues(),
ValueFactory.create(Object[])public int compareTo(Property that)
compareTo in interface Comparable<Property>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String getString()
Readabledefault encoder is used to encode characters.
getString in interface ReadableReadable.getString(TextEncoder)public String getString(TextEncoder encoder)
Readable
getString in interface Readableencoder - the encoder to use, or null if the default encoder should be used
Readable.getString()public String getString(NamespaceRegistry namespaceRegistry)
Readabledefault encoder is used to encode characters.
getString in interface ReadablenamespaceRegistry - the namespace registry that should be used to obtain the prefix for any namespace URIs
Readable.getString(NamespaceRegistry,TextEncoder)
public String getString(NamespaceRegistry namespaceRegistry,
TextEncoder encoder)
Readable
getString in interface ReadablenamespaceRegistry - the namespace registry that should be used to obtain the prefix for the namespace URIsencoder - the encoder to use, or null if the default encoder should be used
Readable.getString(NamespaceRegistry)
public String getString(NamespaceRegistry namespaceRegistry,
TextEncoder encoder,
TextEncoder delimiterEncoder)
Readable
getString in interface ReadablenamespaceRegistry - the namespace registry that should be used to obtain the prefix for the namespace URIs in the
segment namesencoder - the encoder to use for encoding the local part and namespace prefix of any names, or null if the
default encoder should be useddelimiterEncoder - the encoder to use for encoding the delimiter between the local part and namespace prefix of any
names, or null if the standard delimiter should be used
Readable.getString(NamespaceRegistry),
Readable.getString(NamespaceRegistry, TextEncoder)public String toString()
toString in class Object
|
ModeShape Distribution 3.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||