|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.repository.sequencers.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. |
protected class |
SequencerOutputMap.EntryIterator
|
class |
SequencerOutputMap.PropertyValue
A property name and value pair. |
| Constructor Summary | |
|---|---|
SequencerOutputMap(org.jboss.dna.graph.properties.ValueFactories factories)
|
|
| Method Summary | |
|---|---|
org.jboss.dna.graph.properties.ValueFactories |
getFactories()
|
org.jboss.dna.graph.properties.NamespaceRegistry |
getNamespaceRegistry()
|
protected List<SequencerOutputMap.PropertyValue> |
getProperties(org.jboss.dna.graph.properties.Path nodePath)
Get the properties for the node given by the supplied path. |
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. |
protected List<SequencerOutputMap.PropertyValue> |
removeProperties(org.jboss.dna.graph.properties.Path nodePath)
|
void |
setProperty(org.jboss.dna.graph.properties.Path nodePath,
org.jboss.dna.graph.properties.Name propertyName,
Object... values)
|
void |
setProperty(String nodePath,
String property,
Object... values)
|
void |
setReference(String nodePath,
String propertyName,
String... paths)
|
int |
size()
Return the number of node entries in this map. |
protected void |
sortValues()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SequencerOutputMap(org.jboss.dna.graph.properties.ValueFactories factories)
| Method Detail |
|---|
public org.jboss.dna.graph.properties.ValueFactories getFactories()
getFactories in interface org.jboss.dna.graph.sequencers.SequencerOutputpublic org.jboss.dna.graph.properties.NamespaceRegistry getNamespaceRegistry()
getNamespaceRegistry in interface org.jboss.dna.graph.sequencers.SequencerOutputSequencerOutput.getNamespaceRegistry()
public void setProperty(org.jboss.dna.graph.properties.Path nodePath,
org.jboss.dna.graph.properties.Name propertyName,
Object... values)
setProperty in interface org.jboss.dna.graph.sequencers.SequencerOutput
public void setProperty(String nodePath,
String property,
Object... values)
setProperty in interface org.jboss.dna.graph.sequencers.SequencerOutput
public void setReference(String nodePath,
String propertyName,
String... paths)
setReference in interface org.jboss.dna.graph.sequencers.SequencerOutputpublic int size()
public boolean isEmpty()
protected List<SequencerOutputMap.PropertyValue> removeProperties(org.jboss.dna.graph.properties.Path nodePath)
protected List<SequencerOutputMap.PropertyValue> getProperties(org.jboss.dna.graph.properties.Path nodePath)
nodePath - the path to the node
public Iterator<SequencerOutputMap.Entry> iterator()
iterator in interface Iterable<SequencerOutputMap.Entry>protected void sortValues()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||