|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.connector.path.DefaultPathNode
@Immutable public class DefaultPathNode
Default immutable implementation of PathNode
Constructor Summary | |
---|---|
DefaultPathNode(Path path,
UUID uuid,
Iterable<Property> properties,
List<Path.Segment> childSegments)
|
|
DefaultPathNode(Path path,
UUID uuid,
Map<Name,Property> properties,
List<Path.Segment> childSegments)
|
Method Summary | |
---|---|
List<Path.Segment> |
getChildSegments()
|
Path |
getPath()
Returns the full path to this node |
Map<Name,Property> |
getProperties()
Returns a map of property names to the property for the given name |
Property |
getProperty(ExecutionContext context,
String name)
Returns the named property |
Property |
getProperty(Name name)
Returns the named property |
Set<Name> |
getUniqueChildNames()
Returns the set of child names for this node |
UUID |
getUuid()
Returns the UUID for this node. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultPathNode(Path path, UUID uuid, Map<Name,Property> properties, List<Path.Segment> childSegments)
public DefaultPathNode(Path path, UUID uuid, Iterable<Property> properties, List<Path.Segment> childSegments)
Method Detail |
---|
public List<Path.Segment> getChildSegments()
getChildSegments
in interface PathNode
public Path getPath()
PathNode
getPath
in interface PathNode
public UUID getUuid()
PathNode
PathWorkspace
should have a UUID. All other nodes should
return null from this method.
getUuid
in interface PathNode
public Map<Name,Property> getProperties()
PathNode
getProperties
in interface PathNode
public Property getProperty(ExecutionContext context, String name)
PathNode
getProperty
in interface PathNode
context
- the current execution context, used to get a name factory
name
- the name of the property to return
public Property getProperty(Name name)
PathNode
getProperty
in interface PathNode
name
- the name of the property to return
public Set<Name> getUniqueChildNames()
PathNode
getUniqueChildNames
in interface PathNode
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |