org.cip4.jdflib.elementwalker
Class FixVersion
java.lang.Object
org.cip4.jdflib.elementwalker.ElementWalker
org.cip4.jdflib.elementwalker.BaseElementWalker
org.cip4.jdflib.elementwalker.FixVersion
public class FixVersion
- extends BaseElementWalker
- Author:
- Dr. Rainer Prosi, Heidelberger Druckmaschinen AG
fixes versions within JDF 1.x June 7, 2009
uses heuristics to modify this element and its children to be compatible with a given version
in general, it will be able to move from low to high versions, but potentially fail when attempting to move from higher to lower versions
This class is the result of refactoring the recursive fixVersion routines from the dom node tree into one class
bFixIDs
protected boolean bFixIDs
bZappInvalid
protected boolean bZappInvalid
version
protected final JDFElement.EnumVersion version
bOK
protected boolean bOK
fixICSVersions
protected boolean fixICSVersions
bLayoutPrepToStripping
protected boolean bLayoutPrepToStripping
FixVersion
public FixVersion(JDFElement.EnumVersion _version)
- Parameters:
_version -
FixVersion
public FixVersion(FixVersion fixVersion)
- Parameters:
fixVersion -
isFixICSVersions
public boolean isFixICSVersions()
- Returns:
- the fixICSVersions
setFixICSVersions
public void setFixICSVersions(boolean pFixICSVersions)
- Parameters:
pFixICSVersions - the fixICSVersions to set
isFixVersionIDFix
public boolean isFixVersionIDFix()
- Returns:
- the bFixVersionIDFix if true then invalid, i.e. numeric ID, IDREF and IDREFS are prefixed with an '_' when calling fixVersion
isOK
public boolean isOK()
- any problems on the way?
- Returns:
- the bOK
setFixVersionIDFix
public void setFixVersionIDFix(boolean fixVersionIDFix)
- Parameters:
fixVersionIDFix - the bFixVersionIDFix to set if true then invalid, i.e. numeric ID, IDREF and IDREFS are prefixed with an '_' when calling
fixVersion
getFactory
protected BaseWalkerFactory getFactory()
- Overrides:
getFactory in class BaseElementWalker
- Returns:
- the factory for this worker
setLayoutPrepToStripping
public void setLayoutPrepToStripping(boolean layoutPrepToStripping)
- Parameters:
layoutPrepToStripping - the bLayoutPrepToStripping to set
convert
public boolean convert(KElement e)
- convert the element e to whichever version has been set up here
- Parameters:
e - the element to convert - typically a JDF element
- Returns:
- true if all went well
updateAssemblyIDS
protected void updateAssemblyIDS(JDFElement e)
- Parameters:
e - the assembly or assemblysection to update
lessThanVersion
protected boolean lessThanVersion(JDFElement.EnumVersion v)
- returns true if v is less than the target version
- Parameters:
v -
- Returns:
toString
public String toString()
- Overrides:
toString in class ElementWalker
- Returns:
- See Also:
Object.toString()
setBZappInvalid
public void setBZappInvalid(boolean zappInvalid)
- Parameters:
zappInvalid - the bZappInvalid to set
Copyright © 2013. All Rights Reserved.