Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.instance.helper
Class QueueDefinitionItem

java.lang.Object
  extended by eu.esdihumboldt.hale.common.instance.helper.QueueDefinitionItem

public class QueueDefinitionItem
extends Object

Objects of these Class are used by the PropertyResolver in a Queue for traversing the instance-definition-tree.

Author:
Sebastian Reinhardt

Constructor Summary
QueueDefinitionItem(ChildDefinition<?> def, QName qname)
          Create a definition item.
 
Method Summary
 void addLoopQNames(List<QName> loopQNames)
          adds known loop paths wich appear in the path of the instance-definition-tree on the way to the definition of this item
 void addQname(QName qname)
          Adds a single QName to the path
 void addQnames(List<QName> qnames)
          Adds multiple QNames to the path
 ChildDefinition<?> getDefinition()
           
 List<List<QName>> getLoopQNames()
          returns the known loop paths wich appear in the path of the instance-definition-tree on the way to the definition of this item
 List<QName> getQnames()
           
 String qNamesToString()
          returns the path of the definition of this item in the instance-definition-tree as a String
 void setDef(ChildDefinition<?> propDef)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueDefinitionItem

public QueueDefinitionItem(ChildDefinition<?> def,
                           QName qname)
Create a definition item.

Parameters:
def - the child definition
qname - the child name
Method Detail

getDefinition

public ChildDefinition<?> getDefinition()
Returns:
the propDef returns the instance definition in this item

setDef

public void setDef(ChildDefinition<?> propDef)
Parameters:
propDef - sets the instance definition in this item

getQnames

public List<QName> getQnames()
Returns:
the qnames from the path of the definition inside the instance-definition-tree

addQname

public void addQname(QName qname)
Adds a single QName to the path

Parameters:
qname - the QName to be add

addQnames

public void addQnames(List<QName> qnames)
Adds multiple QNames to the path

Parameters:
qnames - the QName sto be add

addLoopQNames

public void addLoopQNames(List<QName> loopQNames)
adds known loop paths wich appear in the path of the instance-definition-tree on the way to the definition of this item

Parameters:
loopQNames - the loop paths to add

getLoopQNames

public List<List<QName>> getLoopQNames()
returns the known loop paths wich appear in the path of the instance-definition-tree on the way to the definition of this item

Returns:
the known loop-paths

qNamesToString

public String qNamesToString()
returns the path of the definition of this item in the instance-definition-tree as a String

Returns:
the string representation of the path

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d