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,
String name) |
boolean |
canConvert(KElement xjdf) |
protected BaseWalker |
constructWalker(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() |
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 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. if true, we will only create links that are appropriate for the respective type or types
|
void |
setVersion(JDFElement.EnumVersion version) |
getFactory
toString, walkTree, walkTreeKidsFirst
public XJDFToJDFImpl(JDFDoc template)
template
- the jdfdoc to fill this intoprotected BaseWalker constructWalker(String name)
constructWalker
in class PackageElementWalker
PackageElementWalker.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()
public 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, 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
- Copyright © 2018. All rights reserved.