Package org.apache.fop.afp.modca
Class InterchangeSet
java.lang.Object
org.apache.fop.afp.modca.InterchangeSet
MO:DCA Interchange Set
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringinterchange set 1 string valuestatic final Stringinterchange set 2 string valuestatic final Stringresource interchange set string valueprivate static final String[]private static final intprivate static final intprivate static final intprivate intthe actual interchange set in use -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanis1()Returns true if complies with MOD:CA interchange set 1booleanis2()Returns true if complies with MOD:CA interchange set 2booleanReturns true if complies with MOD:CA resource setbooleanReturns true if MOD:CA interchange set 2 (resource groups) is supportedtoString()static InterchangeSetReturns the interchange set value of a given string
-
Field Details
-
MODCA_PRESENTATION_INTERCHANGE_SET_1
interchange set 1 string value- See Also:
-
MODCA_PRESENTATION_INTERCHANGE_SET_2
interchange set 2 string value- See Also:
-
MODCA_RESOURCE_INTERCHANGE_SET
resource interchange set string value- See Also:
-
NAMES
-
SET_1
private static final int SET_1- See Also:
-
SET_2
private static final int SET_2- See Also:
-
RESOURCE_SET
private static final int RESOURCE_SET- See Also:
-
value
private int valuethe actual interchange set in use
-
-
Constructor Details
-
InterchangeSet
public InterchangeSet(int value) Main constructor- Parameters:
value- the interchange set value
-
-
Method Details
-
valueOf
Returns the interchange set value of a given string- Parameters:
str- an interchange set value- Returns:
- an interchange set
-
is1
protected boolean is1()Returns true if complies with MOD:CA interchange set 1- Returns:
- true if complies with MOD:CA interchange set 1
-
is2
public boolean is2()Returns true if complies with MOD:CA interchange set 2- Returns:
- true if complies with MOD:CA interchange set 2
-
isResource
public boolean isResource()Returns true if complies with MOD:CA resource set- Returns:
- true if complies with MOD:CA resource set
-
toString
-
supportsLevel2
public boolean supportsLevel2()Returns true if MOD:CA interchange set 2 (resource groups) is supported- Returns:
- true if MOD:CA interchange set 2 (resource groups) is supported
-