|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dna.repository.sequencer.SequencerOutputMap
@NotThreadSafe public class SequencerOutputMap
A basic SequencerOutput
that records all information in-memory and which organizes the properties by node
paths
and provides access to the nodes in a natural path-order.
Nested Class Summary | |
---|---|
class |
SequencerOutputMap.Entry
An entry in a SequencerOutputMap, which contains the path of the node and the property values
on the node. |
class |
SequencerOutputMap.PropertyValue
A property name and value pair. |
Constructor Summary | |
---|---|
SequencerOutputMap(ValueFactories factories)
|
Method Summary | |
---|---|
boolean |
isEmpty()
Return whether there are no entries |
Iterator<SequencerOutputMap.Entry> |
iterator()
Return the entries in this output in an order with shorter paths first. |
void |
setProperty(Path nodePath,
Name propertyName,
Object... values)
Set the supplied property on the supplied node. |
void |
setProperty(String nodePath,
String property,
Object... values)
Set the supplied property on the supplied node. |
void |
setReference(String nodePath,
String propertyName,
String... paths)
Set the supplied reference on the supplied node. |
int |
size()
Return the number of node entries in this map. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SequencerOutputMap(ValueFactories factories)
Method Detail |
---|
public void setProperty(Path nodePath, Name propertyName, Object... values)
The value factories
should be used to create paths, names, and values.
These factories can be used to create new values or convert values from one property type to another. (Note that each of
the factories have methods that create values from all of the property types.)
setProperty
in interface SequencerOutput
nodePath
- the path to the node containing the property; may not be nullpropertyName
- the name of the property to be setvalues
- the value(s) for the property; may be empty if any existing property is to be removedpublic void setProperty(String nodePath, String property, Object... values)
The value factories
should be used to create paths, names, and values.
These factories can be used to create new values or convert values from one property type to another. (Note that each of
the factories have methods that create values from all of the property types.)
This method is provided as a convenience, but it identical to creating a Path
and Name
using the
factories
and calling SequencerOutput.setProperty(Path, Name, Object...)
.
setProperty
in interface SequencerOutput
nodePath
- the path to the node containing the property; may not be nullproperty
- the name of the property to be setvalues
- the value(s) for the property; may be empty if any existing property is to be removedpublic void setReference(String nodePath, String propertyName, String... paths)
This method is provided as a convenience, but it identical to creating a Path
and Name
using the
factories
and calling SequencerOutput.setProperty(Path, Name, Object...)
.
setReference
in interface SequencerOutput
nodePath
- the path to the node containing the property; may not be nullpropertyName
- the name of the property to be setpaths
- the paths to the referenced property, which may be absolute paths or relative to the sequencer output node;
may be empty if any existing property is to be removedpublic int size()
public boolean isEmpty()
public Iterator<SequencerOutputMap.Entry> iterator()
iterator
in interface Iterable<SequencerOutputMap.Entry>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |