public class XJDFToJDFImpl extends PackageElementWalker
log, theFactory| Constructor and Description |
|---|
XJDFToJDFImpl(JDFDoc template) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attributesToSpan(KElement e) |
protected KElement |
attributeToSpan(KElement e,
java.lang.String name) |
static boolean |
canConvert(KElement xjdf) |
protected BaseWalker |
constructWalker(java.lang.String name) |
protected JDFDoc |
convert(KElement _xjdf) |
protected void |
convertTilde(KElement e2) |
protected void |
convertUnits(KElement element) |
protected JDFNode |
createProductRoot()
make sure we have a product in case we have multiple nodes
|
JDFElement.EnumVersion |
getVersion() |
JDFElement.EnumVersion |
getXJDFVersion() |
boolean |
isbConvertTilde()
Getter for bConvertTilde attribute.
|
boolean |
isConvertUnits()
Getter for convertUnits attribute.
|
boolean |
isCreateProduct()
Getter for createProduct attribute.
|
boolean |
isHeuristicLink() |
boolean |
isTypeLinks()
Getter for typeLinks attribute.
|
protected void |
moveAmountsToLink(JDFAttributeMap partmap,
JDFAttributeMap map,
JDFResourceLink rl) |
protected void |
postConvert(JDFNode theNode) |
protected KElement |
reparse(KElement xjdf) |
void |
reset(JDFDoc template) |
void |
resetProduct()
reset the product so that multiple independent product xjdf elements can be merged
|
void |
setConvertTilde(boolean b)
if true tildes are converted to pairs in xjdf 2.0
|
void |
setConvertUnits(boolean convertUnits)
Setter for convertUnits attribute.
|
void |
setCreateProduct(boolean createProduct)
Setter for createProduct attribute.
|
void |
setHeuristicLink(boolean heuristicLink)
if true, we will find a @Usage for sets with no Usage using fuzzy heuristics
|
void |
setTypeLinks(boolean typeLinks)
Setter for typeLinks attribute.
|
void |
setVersion(JDFElement.EnumVersion version) |
getFactorytoString, walkTree, walkTreeKidsFirstpublic XJDFToJDFImpl(JDFDoc template)
template - the jdfdoc to fill this intoprotected BaseWalker constructWalker(java.lang.String name)
constructWalker in class PackageElementWalkerPackageElementWalker.constructWalker(java.lang.String)public boolean isCreateProduct()
public void setCreateProduct(boolean createProduct)
createProduct - the createProduct to setpublic boolean isConvertUnits()
public void setConvertUnits(boolean convertUnits)
convertUnits - the convertUnits to setpublic boolean isbConvertTilde()
public void reset(JDFDoc template)
public void resetProduct()
protected void postConvert(JDFNode theNode)
theNode - public static boolean canConvert(KElement xjdf)
xjdf - protected JDFNode createProductRoot()
protected void convertUnits(KElement element)
element - protected void convertTilde(KElement e2)
e2 - public void setVersion(JDFElement.EnumVersion version)
version - the version to setpublic JDFElement.EnumVersion getVersion()
protected void attributesToSpan(KElement e)
e - protected KElement attributeToSpan(KElement e, java.lang.String name)
e - name - protected void moveAmountsToLink(JDFAttributeMap partmap, JDFAttributeMap map, JDFResourceLink rl)
partmap - map - rl - public void setConvertTilde(boolean b)
b - public void setTypeLinks(boolean typeLinks)
heuristicLink - the typeLinks to setpublic boolean isTypeLinks()
public boolean isHeuristicLink()
public void setHeuristicLink(boolean heuristicLink)
heuristicLink - public JDFElement.EnumVersion getXJDFVersion()