Class FixVersionImpl
- java.lang.Object
-
- org.cip4.jdflib.elementwalker.ElementWalker
-
- org.cip4.jdflib.elementwalker.PackageElementWalker
-
- org.cip4.jdflib.elementwalker.fixversion.FixVersionImpl
-
- Direct Known Subclasses:
FixVersion
public class FixVersionImpl extends PackageElementWalker
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanbFixIDsprotected booleanbFixNewDuplicateprotected booleanbLayoutPrepToStrippingprotected booleanbOKprotected booleanbZappDeprecatedprotected booleanbZappInvalidprotected booleanfixICSVersionsprotected JDFElement.EnumVersionversion-
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory
-
-
Constructor Summary
Constructors Constructor Description FixVersionImpl(JDFElement.EnumVersion _version)FixVersionImpl(FixVersionImpl fixVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIgnore(java.lang.String elementName, java.lang.String attributeName)protected BaseWalkerconstructWalker(java.lang.String name)booleanconvert(KElement e)convert the element e to whichever version has been set up herebooleanisFixICSVersions()booleanisFixNewDuplicate()booleanisFixVersionIDFix()booleanisOK()any problems on the way?booleanisXJDF()booleanisZappDeprecated()protected booleanlessThanVersion(JDFElement.EnumVersion v)returns true if v is less than the target versionvoidsetBZappInvalid(boolean zappInvalid)voidsetFirsthour(int firsthour)voidsetFixICSVersions(boolean pFixICSVersions)voidsetFixNewDuplicate(boolean bFixNewDuplicate)voidsetFixVersionIDFix(boolean fixVersionIDFix)voidsetLasthour(int lasthour)voidsetLayoutPrepToStripping(boolean layoutPrepToStripping)voidsetZappDeprecated(boolean bZappDeprecated)java.lang.StringtoString()protected voidupdateAssemblyIDS(JDFElement e)-
Methods inherited from class org.cip4.jdflib.elementwalker.PackageElementWalker
getFactory
-
Methods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
walkTree, walkTreeKidsFirst
-
-
-
-
Field Detail
-
bFixIDs
protected boolean bFixIDs
-
bZappInvalid
protected boolean bZappInvalid
-
bZappDeprecated
protected boolean bZappDeprecated
-
bFixNewDuplicate
protected boolean bFixNewDuplicate
-
version
protected final JDFElement.EnumVersion version
-
bOK
protected boolean bOK
-
fixICSVersions
protected boolean fixICSVersions
-
bLayoutPrepToStripping
protected boolean bLayoutPrepToStripping
-
-
Constructor Detail
-
FixVersionImpl
public FixVersionImpl(JDFElement.EnumVersion _version)
- Parameters:
_version-
-
FixVersionImpl
public FixVersionImpl(FixVersionImpl fixVersion)
- Parameters:
fixVersion-
-
-
Method Detail
-
isFixNewDuplicate
public boolean isFixNewDuplicate()
- Returns:
- the bFixNewDuplicate
-
setFixNewDuplicate
public void setFixNewDuplicate(boolean bFixNewDuplicate)
- Parameters:
bFixNewDuplicate- the bFixNewDuplicate to set
-
isZappDeprecated
public boolean isZappDeprecated()
- Returns:
- the bZappDeprecated
-
setZappDeprecated
public void setZappDeprecated(boolean bZappDeprecated)
- Parameters:
bZappDeprecated- the bZappDeprecated to set
-
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
-
addIgnore
public void addIgnore(java.lang.String elementName, java.lang.String attributeName)- Parameters:
elementName-attributeName-
-
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:
-
setBZappInvalid
public void setBZappInvalid(boolean zappInvalid)
- Parameters:
zappInvalid- the bZappInvalid to set
-
constructWalker
protected BaseWalker constructWalker(java.lang.String name)
- Overrides:
constructWalkerin classPackageElementWalker- Returns:
- See Also:
PackageElementWalker.constructWalker(java.lang.String)
-
isXJDF
public boolean isXJDF()
- Returns:
-
setFirsthour
public void setFirsthour(int firsthour)
- Parameters:
firsthour- the firsthour to set
-
setLasthour
public void setLasthour(int lasthour)
- Parameters:
lasthour- the lasthour to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classElementWalker- See Also:
Object.toString()
-
-