public class StructureAttributes extends AttributeBase
Modifier and Type | Field and Description |
---|---|
private boolean |
m_isAllowRepeats
Flag for repeated child elements to be ignored.
|
private boolean |
m_isChoice
Flag for choice child content.
|
private boolean |
m_isFlexible
Flexible element handling flag.
|
private boolean |
m_isOrdered
Flag for ordered child content.
|
private java.lang.String |
m_labelName
Name for labeled child content potentially referenced elsewhere.
|
private java.lang.String |
m_usingName
Name for labeled child content defined elsewhere.
|
static StringArray |
s_allowedAttributes
Enumeration of allowed attribute names
|
Constructor and Description |
---|
StructureAttributes()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabelName()
Get label name for child component list.
|
java.lang.String |
getUsingName()
Get name for child component list definition.
|
boolean |
isAllowRepeats()
Check if repeated child elements are allowed.
|
boolean |
isChoice()
Check if child components are a choice.
|
boolean |
isFlexible()
Get flexible flag.
|
boolean |
isOrdered()
Check if child components are ordered.
|
void |
prevalidate(ValidationContext vctx)
Prevalidate attribute information.
|
void |
setAllowRepeats(boolean ignore)
Set repeated child elements allowed flag.
|
void |
setChoice(boolean choice)
Set child components choice flag.
|
void |
setFlexible(boolean flexible)
Set flexible flag.
|
void |
setLabelName(java.lang.String name)
Set label name for child component list.
|
void |
setOrdered(boolean ordered)
Set child components ordered flag.
|
void |
setUsingName(java.lang.String name)
Set name for child component list definition.
|
void |
validate(ValidationContext vctx)
Validate attribute information.
|
public static final StringArray s_allowedAttributes
private boolean m_isFlexible
private boolean m_isOrdered
private boolean m_isChoice
private boolean m_isAllowRepeats
private java.lang.String m_usingName
private java.lang.String m_labelName
public boolean isFlexible()
public void setFlexible(boolean flexible)
flexible
- public boolean isOrdered()
true
if ordered, false
if notpublic void setOrdered(boolean ordered)
ordered
- true
if ordered, false
if notpublic boolean isChoice()
true
if choice, false
if notpublic void setChoice(boolean choice)
choice
- true
if choice, false
if notpublic boolean isAllowRepeats()
true
if repeats allowed, false
if notpublic void setAllowRepeats(boolean ignore)
ignore
- true
if repeated child elements to be allowed,
false
if notpublic java.lang.String getUsingName()
null
if
none)public void setUsingName(java.lang.String name)
name
- text of name defining child components (null
if
none)public java.lang.String getLabelName()
null
if none)public void setLabelName(java.lang.String name)
name
- label text for name (null
if none)public void prevalidate(ValidationContext vctx)
AttributeBase
prevalidate
in class AttributeBase
vctx
- validation contextpublic void validate(ValidationContext vctx)
AttributeBase
AttributeBase.prevalidate(org.jibx.binding.model.ValidationContext)
method will always be
called for every component in the binding definition before this method
is called for any component. This empty base class implementation should
be overridden by each subclass that requires validation handling.validate
in class AttributeBase
vctx
- validation context