public class ReferenceRebuilder
extends java.lang.Object
| Constructor and Description |
|---|
ReferenceRebuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String name)
Adds an attribute which values are mapped.
|
void |
addAutoMapping(Node node)
Parses the given node and all child-nodes for relevant attributes
(see addAttribute) and adds a mapping from their values (IDs) to
new values (auto-assigned IDs).
|
void |
addAutoMapping(java.lang.String reservedId)
Adds a reserved ID which is mapped to another (auto-assigned) id.
|
void |
addExcludedAttributeValue(java.lang.String attribute,
java.lang.String value) |
void |
addMapping(java.lang.String reserveredId,
java.lang.String newId)
Adds a reserved ID which is mapped to the give
newId. |
java.lang.String |
getMappedId(java.lang.String reserveredId)
Gets the mapped ID of a reservered ID.
|
boolean |
isMapped(java.lang.String id)
Return true, if the given ID is mapped.
|
void |
rebuild(Node node)
Maps all relevant attributes of the given node and child-nodes.
|
void |
rebuild(Node[] nodes)
Maps all relevant attributes of given nodes and their child-nodes.
|
public void addAttribute(java.lang.String name)
name - Attribute name.public void addExcludedAttributeValue(java.lang.String attribute,
java.lang.String value)
public void addAutoMapping(Node node)
node - Nodepublic void addAutoMapping(java.lang.String reservedId)
reservedId - Reserved id.public void addMapping(java.lang.String reserveredId,
java.lang.String newId)
newId.reserveredId - Reserved id.newId - New id.public boolean isMapped(java.lang.String id)
id - ID.public java.lang.String getMappedId(java.lang.String reserveredId)
reserveredId - Reserved ID.public void rebuild(Node node)
node - Nodepublic void rebuild(Node[] nodes)
nodes - Nodes© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.