|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.api.model.impl.AbstractProperty org.nuxeo.ecm.core.api.model.impl.ComplexProperty org.nuxeo.ecm.core.api.model.impl.DocumentPartImpl
public class DocumentPartImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class org.nuxeo.ecm.core.api.model.impl.AbstractProperty |
---|
IS_READONLY, IS_VALIDATING, KEYED_DATA |
Fields inherited from interface org.nuxeo.ecm.core.api.model.Property |
---|
DIRTY_MASK, IS_DIRTY, IS_MODIFIED, IS_MOVED, IS_NEW, IS_PHANTOM, IS_REMOVED, NONE |
Constructor Summary | |
---|---|
DocumentPartImpl(Schema schema)
|
|
DocumentPartImpl(Schema schema,
PropertyFactory factory)
|
Method Summary | |
---|---|
void |
accept(PropertyVisitor visitor,
Object arg)
Method that implement the visitor pattern. |
Object |
clone()
|
Path |
collectPath(Path path)
|
Property |
createProperty(Property parent,
Field field)
|
Property |
createProperty(Property parent,
Field field,
int flags)
|
void |
deserialize(ObjectInputStream in)
|
void |
deserializeChildren(ComplexProperty parent,
ObjectInputStream in)
|
void |
deserializeChildren(ListProperty parent,
ObjectInputStream in)
|
PropertyDiff |
exportDiff()
|
Field |
getField()
Gets the field corresponding to this property. |
String |
getName()
Gets the property name. |
Schema |
getSchema()
Gets the document schema defining the property tree from which the property belongs. |
Schema |
getType()
Get the type of the field corresponding to this property. |
void |
importDiff(PropertyDiff diff)
|
void |
internalSetValue(Serializable value)
Sets the given normalized value. |
boolean |
isContainer()
Whether this property is a container - this means the property value is a map or a list. |
boolean |
isSameAs(DocumentPart dp)
|
void |
serialize(ObjectOutputStream out)
|
String |
toString()
|
Methods inherited from class org.nuxeo.ecm.core.api.model.impl.ComplexProperty |
---|
addEmpty, addValue, addValue, clear, containsKey, containsValue, entrySet, get, get, get, getChild, getChildren, getDirtyChildren, getNonPhantomChild, getNonPhantomChildren, getValueForWrite, init, internalGetValue, isEmpty, isNormalized, isSameAs, keySet, normalize, put, putAll, remove, setValue, values, visitChildren |
Methods inherited from class org.nuxeo.ecm.core.api.model.impl.AbstractProperty |
---|
areFlagsSet, clearDirtyFlags, clearFlags, convertTo, getData, getData, getDirtyFlags, getParent, getPath, getRoot, getValue, getValue, getValue, getValue, isComplex, isDirty, isList, isModified, isMoved, isNew, isPhantom, isReadOnly, isRemoved, isScalar, isValidating, iterator, moveTo, newInstance, remove, removePhantomFlag, resolvePath, resolvePath, setData, setData, setFlags, setIsModified, setReadOnly, setValidating, setValue, setValue, size, validate, validateType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.nuxeo.ecm.core.api.model.Property |
---|
addEmpty, addValue, addValue, clearDirtyFlags, convertTo, get, get, getChildren, getData, getData, getDirtyChildren, getDirtyFlags, getParent, getPath, getRoot, getValue, getValue, getValue, getValue, getValueForWrite, init, isComplex, isDirty, isList, isModified, isMoved, isNew, isNormalized, isPhantom, isReadOnly, isRemoved, isSameAs, isScalar, isValidating, moveTo, newInstance, normalize, remove, resolvePath, resolvePath, setData, setData, setReadOnly, setValidating, setValue, setValue, setValue, size, validate, validateType |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface java.util.Map |
---|
equals, hashCode, size |
Constructor Detail |
---|
public DocumentPartImpl(Schema schema, PropertyFactory factory)
public DocumentPartImpl(Schema schema)
Method Detail |
---|
public void internalSetValue(Serializable value) throws PropertyException
AbstractProperty
This applies only for nodes that physically store a value (that means non container nodes). Container nodes does nothing.
internalSetValue
in class AbstractProperty
PropertyException
public boolean isContainer()
Property
Container properties don't have a scalar values. Container values are
computed each time they are requested - by calling on of the
getValue
methods - by collecting the values of the child
properties.
isContainer
in interface Property
public Schema getSchema()
Property
getSchema
in interface DocumentPart
getSchema
in interface Property
getSchema
in class AbstractProperty
public String getName()
Property
getName
in interface Property
public Schema getType()
Property
getType
in interface Property
getType
in class ComplexProperty
public Field getField()
Property
The field is the object defining the property. You can see the field as a java class and the property as a class instance
getField
in interface Property
public Path collectPath(Path path)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void accept(PropertyVisitor visitor, Object arg) throws PropertyException
Property
The visitor must return null to stop visiting children otherwise a context object that will be passed as the arg argument to children
accept
in interface Property
visitor
- the visitor to acceptarg
- an argument passed to the visitor. This should be used by the
visitor to carry on the visiting context.
PropertyException
public Property createProperty(Property parent, Field field)
createProperty
in interface DocumentPart
public Property createProperty(Property parent, Field field, int flags)
createProperty
in interface DocumentPart
public PropertyDiff exportDiff()
exportDiff
in interface DocumentPart
public void importDiff(PropertyDiff diff)
importDiff
in interface DocumentPart
public void serialize(ObjectOutputStream out) throws PropertyException, IOException
PropertyException
IOException
public void deserialize(ObjectInputStream in) throws ClassNotFoundException, IOException, PropertyException
ClassNotFoundException
IOException
PropertyException
public void deserializeChildren(ListProperty parent, ObjectInputStream in) throws ClassNotFoundException, IOException, PropertyException
ClassNotFoundException
IOException
PropertyException
public void deserializeChildren(ComplexProperty parent, ObjectInputStream in) throws ClassNotFoundException, IOException, PropertyException
ClassNotFoundException
IOException
PropertyException
public boolean isSameAs(DocumentPart dp)
public String toString()
toString
in class AbstractProperty
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |