Package com.adobe.xfa
Class ChildReln
java.lang.Object
com.adobe.xfa.ChildReln
This class describes a relationship of a parent to one of its children.
Immutability
ChildReln objects are immutable.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
enumeration unlimitedstatic final int
static final int
enumeration occursEnum
oneofChild = Only one child allowed -- exclusive OR -
Constructor Summary
ConstructorsConstructorDescriptionChildReln
(int count, int nMax) Assignments should only be done once in xfanamespace.cpp so this method is private to prevent its use. -
Method Summary
Modifier and TypeMethodDescriptionint
getMax()
Accessor.int
getMin()
Accessor.int
Accessor.static ChildReln
static ChildReln
static ChildReln
static ChildReln
void
init
(int count, int nMax) Initializes the child relationship member variables
Value UNLIMITED means no limit on number of occurrences.boolean
-
Field Details
-
oneOfChild
public static final int oneOfChild- See Also:
-
oneOrMore
public static final int oneOrMore- See Also:
-
UNLIMITED
public static final int UNLIMITEDenumeration unlimited- See Also:
-
zeroOrMore
public static final int zeroOrMore- See Also:
-
zeroOrOne
public static final int zeroOrOneenumeration occursEnum
oneofChild = Only one child allowed -- exclusive OR- See Also:
-
-
Constructor Details
-
ChildReln
public ChildReln(int count, int nMax) Assignments should only be done once in xfanamespace.cpp so this method is private to prevent its use.
Value UNLIMITED means no limit on number of occurrences. Constructor. Populates the child relationship member variables- Parameters:
count
- - The number of times this child may occur.nMax
- - The maximum number of times this child may occur. for zeroOrOne or oneOf elements: default = "1" for zeroOrMore or oneOrMore elements: default = UNLIMITED
-
-
Method Details
-
getOneOfChild
-
getOneOrMore
-
getZeroOrMore
-
getZeroOrOne
-
getMax
public int getMax()Accessor. Returns the maximum number of times this element may occur. If the number of occurences is unlimited, this returns -1.- Returns:
- a long integer indicating maximum occurrences.
-
getMin
public int getMin()Accessor. Returns the minimum number of times this element may occur.- Returns:
- a long integer indicating minimum occurrences. This is zero or one
-
getOccurrence
public int getOccurrence()Accessor. Returns the number of valid occurrences of this child- Returns:
- The number of times this child may occur.
-
init
public void init(int count, int nMax) Initializes the child relationship member variables
Value UNLIMITED means no limit on number of occurrences.- Parameters:
count
- - The number of times this child may occur.nMax
- - The maximum number of times this child may occur. for zeroOrOne or oneOf elements: default = "1" for zeroOrMore or oneOrMore elements: default = UNLIMITED
-
isBaseClass
public boolean isBaseClass()
-