|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Property
This class describes a document property.
Properties are lazily created.
This means a property can be retrieved
- using getProperty(name)
) on the container -
even if it not already exists but was defined by the container schema.
The first time a write operation is invoked on such a property, the property will be created by the underlying storage.
Method Summary | |
---|---|
String |
getName()
Gets the name used to identify this property by its container. |
Collection<Property> |
getProperties()
Gets the collection of the children properties. |
Property |
getProperty(String name)
Gets the children property given its name. |
Iterator<Property> |
getPropertyIterator()
Gets an iterator over the children properties. |
Type |
getType()
Gets the property type. |
Object |
getValue()
Gets the value of this property. |
boolean |
isNull()
Tests whether or not this property is null. |
boolean |
isPropertySet(String name)
Checks whether this property has child property with the given name. |
void |
setNull()
Nullify this property. |
void |
setValue(Object value)
Sets the value of this property. |
Method Detail |
---|
String getName() throws DocumentException
If the container of this property is not supporting accessing properties by names, returns the empty string.
DocumentException
- if the type cannot be resolvedType getType()
Object getValue() throws DocumentException
DocumentException
void setValue(Object value) throws DocumentException
value
- the value to set
DocumentException
boolean isNull()
A null property means that it is defined by the container schema but was not yet set (so it may not exists as a persistent object)
If the property is null the first time a write operation is done on it the property will be created by the underlying storage
void setNull() throws DocumentException
The property is set to null which may result in being removed from the storage (this aspect depends on the implementation)
DocumentException
boolean isPropertySet(String name) throws DocumentException
DocumentException
UnsupportedOperationException
- if this is not a composite propertyProperty getProperty(String name) throws DocumentException
name
- the property name
DocumentException
UnsupportedOperationException
- if this is not a composite propertyCollection<Property> getProperties() throws DocumentException
DocumentException
UnsupportedOperationException
- if this is not a composite propertyIterator<Property> getPropertyIterator() throws DocumentException
DocumentException
UnsupportedOperationException
- if this is not a composite property
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |