Package com.adobe.xfa
Class ChildReln
- java.lang.Object
-
- com.adobe.xfa.ChildReln
-
public class ChildReln extends java.lang.Object
This class describes a relationship of a parent to one of its children.Immutability
ChildReln objects are immutable.- See Also:
NodeSchema
-
-
Field Summary
Fields Modifier and Type Field Description static int
oneOfChild
static int
oneOrMore
static int
UNLIMITED
enumeration unlimitedstatic int
zeroOrMore
static int
zeroOrOne
enumeration occursEnum
oneofChild = Only one child allowed -- exclusive OR
-
Constructor Summary
Constructors Constructor Description ChildReln(int count, int nMax)
Assignments should only be done once in xfanamespace.cpp so this method is private to prevent its use.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMax()
Accessor.int
getMin()
Accessor.int
getOccurrence()
Accessor.static ChildReln
getOneOfChild()
static ChildReln
getOneOrMore()
static ChildReln
getZeroOrMore()
static ChildReln
getZeroOrOne()
void
init(int count, int nMax)
Initializes the child relationship member variables
Value UNLIMITED means no limit on number of occurrences.boolean
isBaseClass()
-
-
-
Field Detail
-
oneOfChild
public static final int oneOfChild
- See Also:
- Constant Field Values
-
oneOrMore
public static final int oneOrMore
- See Also:
- Constant Field Values
-
UNLIMITED
public static final int UNLIMITED
enumeration unlimited- See Also:
- Constant Field Values
-
zeroOrMore
public static final int zeroOrMore
- See Also:
- Constant Field Values
-
zeroOrOne
public static final int zeroOrOne
enumeration occursEnum
oneofChild = Only one child allowed -- exclusive OR- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getOneOfChild
public static ChildReln getOneOfChild()
-
getOneOrMore
public static ChildReln getOneOrMore()
-
getZeroOrMore
public static ChildReln getZeroOrMore()
-
getZeroOrOne
public static ChildReln 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()
-
-