org.deduced.xml
Class XmlModelDecoder.CollectionToElementAssociation

java.lang.Object
  extended by org.deduced.xml.XmlModelDecoder.CollectionToElementAssociation
Enclosing class:
XmlModelDecoder

private static final class XmlModelDecoder.CollectionToElementAssociation
extends java.lang.Object

CollectionToElementAssociation : utility class used to store the association between the collection in the DOM and its element. also used to store links to the parent/children that are created by value

Author:
Duff

Field Summary
private  PropertyCollection<?,?> collection
          the created collection
private  org.w3c.dom.Element element
          DOM element representing this collection and its values
private  java.lang.Long predecessor
          collection ID of the parent class that will create this child by value.
private  java.util.List<XmlModelDecoder.PropertyToElementAssociation> successors
          stores objects of type PropertyToElementAssociation that will be created by value as children of this collection
private  java.lang.Long uniqueID
          unique ID of the collection in the DOM
 
Constructor Summary
XmlModelDecoder.CollectionToElementAssociation()
          CollectionToElementAssociation Constructor
 
Method Summary
 PropertyCollection<?,?> getCollection()
           
 org.w3c.dom.Element getElement()
           
 java.lang.Long getPredecessor()
           
 java.util.List<XmlModelDecoder.PropertyToElementAssociation> getSuccessors()
           
 java.lang.Long getUniqueID()
           
 void setCollection(PropertyCollection<?,?> setCollection)
           
 void setElement(org.w3c.dom.Element setElement)
           
 void setPredecessor(java.lang.Long setPredecessor)
           
 void setUniqueID(java.lang.Long setUniqueID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collection

private PropertyCollection<?,?> collection
the created collection


uniqueID

private java.lang.Long uniqueID
unique ID of the collection in the DOM


element

private org.w3c.dom.Element element
DOM element representing this collection and its values


predecessor

private java.lang.Long predecessor
collection ID of the parent class that will create this child by value. If null, it means that the collection has no parent that will create it by value.


successors

private java.util.List<XmlModelDecoder.PropertyToElementAssociation> successors
stores objects of type PropertyToElementAssociation that will be created by value as children of this collection

Constructor Detail

XmlModelDecoder.CollectionToElementAssociation

public XmlModelDecoder.CollectionToElementAssociation()
CollectionToElementAssociation Constructor

Method Detail

setCollection

public void setCollection(PropertyCollection<?,?> setCollection)
Parameters:
setCollection - The collection to set.

getCollection

public PropertyCollection<?,?> getCollection()
Returns:
Returns the collection.

setUniqueID

public void setUniqueID(java.lang.Long setUniqueID)
Parameters:
setUniqueID - The uniqueID to set.

getUniqueID

public java.lang.Long getUniqueID()
Returns:
Returns the uniqueID.

setElement

public void setElement(org.w3c.dom.Element setElement)
Parameters:
setElement - The element to set.

getElement

public org.w3c.dom.Element getElement()
Returns:
Returns the element.

setPredecessor

public void setPredecessor(java.lang.Long setPredecessor)
Parameters:
setPredecessor - The predecessor to set.

getPredecessor

public java.lang.Long getPredecessor()
Returns:
Returns the predecessor.

getSuccessors

public java.util.List<XmlModelDecoder.PropertyToElementAssociation> getSuccessors()
Returns:
Returns the successors.