public class XJDFToJDFConverter extends BaseElementWalker
logtheFactory| Constructor and Description |
|---|
XJDFToJDFConverter(JDFDoc template) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attributesToSpan(KElement e) |
protected KElement |
attributeToSpan(KElement e,
String name) |
boolean |
canConvert(KElement xjdf) |
JDFDoc |
convert(KElement xjdf) |
protected void |
convertTilde(KElement e2) |
protected void |
convertUnits(KElement e2) |
protected JDFNode |
createProductRoot()
make sure we have a product in case we have multiple nodes
|
protected JDFSeparationList |
createSeparationList(KElement rPart,
String elem)
make a separationlist from an attribute
|
JDFElement.EnumVersion |
getVersion() |
boolean |
isbConvertTilde()
Getter for bConvertTilde attribute.
|
boolean |
isConvertUnits()
Getter for convertUnits attribute.
|
boolean |
isCreateProduct()
Getter for createProduct attribute.
|
boolean |
isHeuristicLink()
Getter for heuristicLink attribute.
|
protected void |
moveAmountsToLink(JDFAttributeMap partmap,
JDFAttributeMap map,
JDFResourceLink rl) |
protected void |
moveToLink(JDFResourceLink rl,
JDFAttributeMap partmap,
JDFAttributeMap map,
String a) |
protected KElement |
reparse(KElement xjdf) |
void |
resetProduct()
reset the product so that multiple independent product xjdf elements can be merged
|
void |
setbConvertTilde(boolean bConvertTilde)
Setter for bConvertTilde attribute.
|
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)
Setter for heuristicLink attribute.
|
void |
setVersion(JDFElement.EnumVersion version) |
constructWalkers, getFactorytoString, walkTree, walkTreeKidsFirstpublic XJDFToJDFConverter(JDFDoc template)
template - the jdfdoc to fill this intopublic 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 setbConvertTilde(boolean bConvertTilde)
bConvertTilde - the bConvertTilde to setpublic void resetProduct()
public boolean canConvert(KElement xjdf)
xjdf - protected JDFSeparationList createSeparationList(KElement rPart, String elem)
rPart - elem - the separation list attribute / elementprotected JDFNode createProductRoot()
protected void convertUnits(KElement e2)
e2 - 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, String name)
e - name - protected void moveToLink(JDFResourceLink rl, JDFAttributeMap partmap, JDFAttributeMap map, String a)
rl - partmap - map - a - protected void moveAmountsToLink(JDFAttributeMap partmap, JDFAttributeMap map, JDFResourceLink rl)
partmap - map - rl - public void setConvertTilde(boolean b)
b - public void setHeuristicLink(boolean heuristicLink)
heuristicLink - the heuristicLink to setpublic boolean isHeuristicLink()
Copyright © 2013. All Rights Reserved.