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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected final JDFElement.EnumVersionFields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory -
Constructor Summary
ConstructorsConstructorDescriptionFixVersionImpl(JDFElement.EnumVersion _version) FixVersionImpl(FixVersionImpl fixVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected BaseWalkerconstructWalker(String name) booleanconvert the element e to whichever version has been set up herestatic intstatic intintbooleanbooleanbooleanbooleanbooleanisOK()any problems on the way?booleanisXJDF()booleanprotected booleanreturns true if v is less than the target versionvoidsetBZappInvalid(boolean zappInvalid) static voidsetDefaultFirstHour(int defaultFirstHour) static voidsetDefaultLastHour(int defaultLastHour) voidsetFirsthour(int firsthour) voidsetFixICSVersions(boolean pFixICSVersions) voidsetFixNewDuplicate(boolean bFixNewDuplicate) voidsetFixVersionIDFix(boolean fixVersionIDFix) voidsetLasthour(int lasthour) voidsetLayoutPrepToStripping(boolean layoutPrepToStripping) voidsetNewYear(int newYear) voidsetRepairData(boolean bRepairData) voidsetZappDeprecated(boolean bZappDeprecated) toString()protected voidMethods inherited from class org.cip4.jdflib.elementwalker.PackageElementWalker
getFactoryMethods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
walkTree, walkTreeKidsFirst
-
Field Details
-
bFixIDs
protected boolean bFixIDs -
bZappInvalid
protected boolean bZappInvalid -
bRepairData
protected boolean bRepairData -
bZappDeprecated
protected boolean bZappDeprecated -
bFixNewDuplicate
protected boolean bFixNewDuplicate -
version
-
bOK
protected boolean bOK -
fixICSVersions
protected boolean fixICSVersions -
bLayoutPrepToStripping
protected boolean bLayoutPrepToStripping
-
-
Constructor Details
-
FixVersionImpl
- Parameters:
_version-
-
FixVersionImpl
- Parameters:
fixVersion-
-
-
Method Details
-
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
-
getDefaultFirstHour
public static int getDefaultFirstHour() -
setDefaultFirstHour
public static void setDefaultFirstHour(int defaultFirstHour) -
getDefaultLastHour
public static int getDefaultLastHour() -
setDefaultLastHour
public static void setDefaultLastHour(int defaultLastHour) -
isbRepairData
public boolean isbRepairData() -
setRepairData
public void setRepairData(boolean bRepairData) -
getNewYear
public int getNewYear() -
setNewYear
public void setNewYear(int newYear) -
addIgnore
- Parameters:
elementName-attributeName-
-
setLayoutPrepToStripping
public void setLayoutPrepToStripping(boolean layoutPrepToStripping) - Parameters:
layoutPrepToStripping- the bLayoutPrepToStripping to set
-
convert
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
- Parameters:
e- the assembly or assemblysection to update
-
lessThanVersion
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
- Overrides:
constructWalkerin classPackageElementWalker- Returns:
- See Also:
-
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
- Overrides:
toStringin classElementWalker- See Also:
-