fr.inria.ketuk
Class XBLinks

java.lang.Object
  |
  +--fr.inria.ketuk.XBLinks

public class XBLinks
extends java.lang.Object

Memorizes the links used to assure a mapping between XML nodes and beans

Author:
Claude Pasquier

Field Summary
 java.util.Hashtable _mappingBeanProp
          The mapping between beans and the Vector of property names which were set
 
Constructor Summary
XBLinks()
          Default constructor
 
Method Summary
 void addMappingBeanProp(java.lang.Object key, java.lang.String property)
          Adds a properties in the list of props associated with the bean
 void addMappingProp(java.lang.Object key, java.lang.String property, java.lang.String propertyRef)
          Adds a pairs propertyName, propertyID to the key bean
 java.lang.String getEltIdName()
          Returns the name of the attribute used to memorize the unique Identifier of a node
 int getEltIdNum()
          The number of the last named node
 java.lang.String getEltIdPrefix()
          Returns the prefix used to name a node
 java.util.Collection getMappingBeanProp(java.lang.Object key)
          Returns the properties initialized int the bean
 java.lang.Object getMappingEltBean(java.lang.String key)
          Returns the mapping between the xpath of bean elements in the result DOM tree and the generated object
 java.util.Enumeration getMappingEltBeanKeys()
          Returns the XPath of the element from the source document mapped with beans
 java.lang.String getMappingNodeRef(java.lang.Object key)
          Returns the mapping between generated beans, and the 'id' of the corresponding element in the source tree
 java.util.Hashtable getMappingProp(java.lang.Object key)
          Returns the pairs propertyName, propertyID associated with the bean
 java.lang.String getMappingSourceNode(java.lang.String key)
          Returns the id into the xslt of the property defined by "sourceNode+propertyName"
 void incrementEltIdNum()
          Increments the value of the last named node
 void putMappingBeanProp(java.lang.Object key, java.util.Set propList)
          Sets the list of properties associated with the bean
 void putMappingEltBean(java.lang.String key, java.lang.Object value)
          Adds a new mapping between the xpath of a bean elements in the result DOM tree and a generated object
 void putMappingNodeRef(java.lang.Object key, java.lang.String nodeRef)
          Adds a new mapping between a beans, and the 'id' of the corresponding element in the source tree
 void putMappingProp(java.lang.Object key, java.util.Hashtable propTable)
          Sets the pairs propertyName, propertyID associated with the bean
 void putMappingSourceNode(java.lang.String key, java.lang.String value)
          Adds a mapping between a pair "sourceNode+propertyName" and the 'id' of the property element into the XSL tree
 void removeMappingBeanProp(java.lang.Object key, java.lang.String property)
          Removes a properties from the list of props associated with the bean
 void removeMappingEltBean(java.lang.String key)
          Removes the mapping corresponding to the key
 void setEltIdNum(int num)
          Sets the value of the last named node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_mappingBeanProp

public java.util.Hashtable _mappingBeanProp
The mapping between beans and the Vector of property names which were set
Constructor Detail

XBLinks

public XBLinks()
Default constructor
Method Detail

getMappingEltBean

public java.lang.Object getMappingEltBean(java.lang.String key)
Returns the mapping between the xpath of bean elements in the result DOM tree and the generated object

getMappingEltBeanKeys

public java.util.Enumeration getMappingEltBeanKeys()
Returns the XPath of the element from the source document mapped with beans

putMappingEltBean

public void putMappingEltBean(java.lang.String key,
                              java.lang.Object value)
Adds a new mapping between the xpath of a bean elements in the result DOM tree and a generated object

removeMappingEltBean

public void removeMappingEltBean(java.lang.String key)
Removes the mapping corresponding to the key

getMappingNodeRef

public java.lang.String getMappingNodeRef(java.lang.Object key)
Returns the mapping between generated beans, and the 'id' of the corresponding element in the source tree

putMappingNodeRef

public void putMappingNodeRef(java.lang.Object key,
                              java.lang.String nodeRef)
Adds a new mapping between a beans, and the 'id' of the corresponding element in the source tree

getMappingProp

public java.util.Hashtable getMappingProp(java.lang.Object key)
Returns the pairs propertyName, propertyID associated with the bean

putMappingProp

public void putMappingProp(java.lang.Object key,
                           java.util.Hashtable propTable)
Sets the pairs propertyName, propertyID associated with the bean

addMappingProp

public void addMappingProp(java.lang.Object key,
                           java.lang.String property,
                           java.lang.String propertyRef)
Adds a pairs propertyName, propertyID to the key bean

getMappingBeanProp

public java.util.Collection getMappingBeanProp(java.lang.Object key)
Returns the properties initialized int the bean

putMappingBeanProp

public void putMappingBeanProp(java.lang.Object key,
                               java.util.Set propList)
Sets the list of properties associated with the bean

addMappingBeanProp

public void addMappingBeanProp(java.lang.Object key,
                               java.lang.String property)
Adds a properties in the list of props associated with the bean

removeMappingBeanProp

public void removeMappingBeanProp(java.lang.Object key,
                                  java.lang.String property)
Removes a properties from the list of props associated with the bean

getMappingSourceNode

public java.lang.String getMappingSourceNode(java.lang.String key)
Returns the id into the xslt of the property defined by "sourceNode+propertyName"

putMappingSourceNode

public void putMappingSourceNode(java.lang.String key,
                                 java.lang.String value)
Adds a mapping between a pair "sourceNode+propertyName" and the 'id' of the property element into the XSL tree

getEltIdName

public java.lang.String getEltIdName()
Returns the name of the attribute used to memorize the unique Identifier of a node

getEltIdPrefix

public java.lang.String getEltIdPrefix()
Returns the prefix used to name a node

setEltIdNum

public void setEltIdNum(int num)
Sets the value of the last named node

incrementEltIdNum

public void incrementEltIdNum()
Increments the value of the last named node

getEltIdNum

public int getEltIdNum()
The number of the last named node

The next one will be named <_eltIdPrefix><_eltIdNum>