|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.jcr.cache.ImmutableNodeInfo
@Immutable public class ImmutableNodeInfo

The information that describes a node. This is the information that is kept in the cache.
| Constructor Summary | |
|---|---|
ImmutableNodeInfo(Location originalLocation,
Name primaryTypeName,
List<Name> mixinTypeNames,
NodeDefinitionId definition,
UUID parent,
Children children,
Map<Name,PropertyInfo> properties)
Create an immutable NodeInfo instance. |
|
| Method Summary | |
|---|---|
Children |
getChildren()
Get the children for this node. |
NodeDefinitionId |
getDefinitionId()
|
List<Name> |
getMixinTypeNames()
Get the names of the mixin types for this node. |
Location |
getOriginalLocation()
|
UUID |
getParent()
|
Name |
getPrimaryTypeName()
|
PropertyInfo |
getProperty(Name name)
Get this node's property that has the supplied name. |
int |
getPropertyCount()
Return the number of properties on this node. |
Set<Name> |
getPropertyNames()
Get the names of the properties that are owned by this node. |
UUID |
getUuid()
|
boolean |
hasProperties()
Return true of this node has at least one property. |
boolean |
isModified()
Indicates whether the node represented by this NodeInfo is modified (i.e., exists in the persistent repository with
different child items). |
boolean |
isNew()
Indicates whether the node represented by this NodeInfo is new (i.e., does not yet exist in the persistent
repository). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableNodeInfo(Location originalLocation,
Name primaryTypeName,
List<Name> mixinTypeNames,
NodeDefinitionId definition,
UUID parent,
Children children,
Map<Name,PropertyInfo> properties)
originalLocation - the original locationprimaryTypeName - the name of the node's primary typemixinTypeNames - the names of the mixin types for this node, or null if there are nonedefinition - the definition used when creating the nodeparent - the parentchildren - the immutable children; may be null if there are no childrenproperties - the unmodifiable map of properties; may be null if there are no properties| Method Detail |
|---|
public Location getOriginalLocation()
getOriginalLocation in interface NodeInfoNodeInfo.getOriginalLocation()public UUID getUuid()
getUuid in interface NodeInfoNodeInfo.getUuid()public UUID getParent()
getParent in interface NodeInfoNodeInfo.getParent()public Name getPrimaryTypeName()
getPrimaryTypeName in interface NodeInfoNodeInfo.getPrimaryTypeName()public List<Name> getMixinTypeNames()
getMixinTypeNames in interface NodeInfoNodeInfo.getMixinTypeNames()public NodeDefinitionId getDefinitionId()
getDefinitionId in interface NodeInfoNodeInfo.getDefinitionId()public Children getChildren()
getChildren in interface NodeInfoNodeInfo.getChildren()public boolean hasProperties()
hasProperties in interface NodeInfoNodeInfo.hasProperties()public int getPropertyCount()
getPropertyCount in interface NodeInfoNodeInfo.getPropertyCount()public Set<Name> getPropertyNames()
getPropertyNames in interface NodeInfoNodeInfo.getPropertyNames()public PropertyInfo getProperty(Name name)
getProperty in interface NodeInfoname - the property name; may not be null
NodeInfo.getProperty(org.jboss.dna.graph.property.Name)public boolean isNew()
NodeInfo is new (i.e., does not yet exist in the persistent
repository).
isNew in interface NodeInfofalse always as this object represents unmodified nodes onlyNodeInfo.isNew()public boolean isModified()
NodeInfo is modified (i.e., exists in the persistent repository with
different child items).
isModified in interface NodeInfofalse always as this object represents unmodified nodes onlyNodeInfo.isModified()public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||