|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.elementwalker.ElementWalker
org.cip4.jdflib.elementwalker.BaseElementWalker
org.cip4.jdflib.extensions.xjdfwalker.XJDFToJDFConverter
public class XJDFToJDFConverter
| Field Summary |
|---|
| Fields inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker |
|---|
log |
| Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker |
|---|
theFactory |
| Constructor Summary | |
|---|---|
XJDFToJDFConverter(JDFDoc template)
|
|
| Method Summary | |
|---|---|
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(JDFNode theNode)
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)
|
| Methods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker |
|---|
constructWalkers, getFactory |
| Methods inherited from class org.cip4.jdflib.elementwalker.ElementWalker |
|---|
toString, walkTree, walkTreeKidsFirst |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XJDFToJDFConverter(JDFDoc template)
template - the jdfdoc to fill this into| Method Detail |
|---|
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 setbConvertTilde(boolean bConvertTilde)
bConvertTilde - the bConvertTilde to setpublic void resetProduct()
public JDFDoc convert(KElement xjdf)
xjdf -
protected KElement reparse(KElement xjdf)
xjdf -
public boolean canConvert(KElement xjdf)
xjdf -
protected JDFSeparationList createSeparationList(KElement rPart,
String elem)
rPart - elem - the separation list attribute / element
protected JDFNode createProductRoot(JDFNode theNode)
theNode -
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||