public class ChildReln extends Object
NodeSchema
Modifier and Type | Field and Description |
---|---|
static int |
oneOfChild |
static int |
oneOrMore |
static int |
UNLIMITED
enumeration unlimited
|
static int |
zeroOrMore |
static int |
zeroOrOne
enumeration occursEnum
oneofChild = Only one child allowed -- exclusive OR |
Constructor and Description |
---|
ChildReln(int count,
int nMax)
Assignments should only be done once in xfanamespace.cpp so this method
is private to prevent its use.
|
Modifier and Type | Method and 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() |
public static final int oneOfChild
public static final int oneOrMore
public static final int UNLIMITED
public static final int zeroOrMore
public static final int zeroOrOne
public ChildReln(int count, int nMax)
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 = UNLIMITEDpublic static ChildReln getOneOfChild()
public static ChildReln getOneOrMore()
public static ChildReln getZeroOrMore()
public static ChildReln getZeroOrOne()
public int getMax()
public int getMin()
public int getOccurrence()
public void init(int count, int nMax)
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 = UNLIMITEDpublic boolean isBaseClass()
Copyright © 2010 - 2020 Adobe. All Rights Reserved