|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 propertiesMethod Detail |
---|
public Location getOriginalLocation()
getOriginalLocation
in interface NodeInfo
NodeInfo.getOriginalLocation()
public UUID getUuid()
getUuid
in interface NodeInfo
NodeInfo.getUuid()
public UUID getParent()
getParent
in interface NodeInfo
NodeInfo.getParent()
public Name getPrimaryTypeName()
getPrimaryTypeName
in interface NodeInfo
NodeInfo.getPrimaryTypeName()
public List<Name> getMixinTypeNames()
getMixinTypeNames
in interface NodeInfo
NodeInfo.getMixinTypeNames()
public NodeDefinitionId getDefinitionId()
getDefinitionId
in interface NodeInfo
NodeInfo.getDefinitionId()
public Children getChildren()
getChildren
in interface NodeInfo
NodeInfo.getChildren()
public boolean hasProperties()
hasProperties
in interface NodeInfo
NodeInfo.hasProperties()
public int getPropertyCount()
getPropertyCount
in interface NodeInfo
NodeInfo.getPropertyCount()
public Set<Name> getPropertyNames()
getPropertyNames
in interface NodeInfo
NodeInfo.getPropertyNames()
public PropertyInfo getProperty(Name name)
getProperty
in interface NodeInfo
name
- 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 NodeInfo
false
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 NodeInfo
false
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 |