Package org.jibx.binding.model
Class StructureAttributes
java.lang.Object
org.jibx.binding.model.AttributeBase
org.jibx.binding.model.StructureAttributes
Model component for structure attribute group in binding definition.
- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanFlag for repeated child elements to be ignored.private booleanFlag for choice child content.private booleanFlexible element handling flag.private booleanFlag for ordered child content.private StringName for labeled child content potentially referenced elsewhere.private StringName for labeled child content defined elsewhere.static final StringArrayEnumeration of allowed attribute names -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet label name for child component list.Get name for child component list definition.booleanCheck if repeated child elements are allowed.booleanisChoice()Check if child components are a choice.booleanGet flexible flag.booleanCheck if child components are ordered.voidprevalidate(ValidationContext vctx) Prevalidate attribute information.voidsetAllowRepeats(boolean ignore) Set repeated child elements allowed flag.voidsetChoice(boolean choice) Set child components choice flag.voidsetFlexible(boolean flexible) Set flexible flag.voidsetLabelName(String name) Set label name for child component list.voidsetOrdered(boolean ordered) Set child components ordered flag.voidsetUsingName(String name) Set name for child component list definition.voidvalidate(ValidationContext vctx) Validate attribute information.
-
Field Details
-
s_allowedAttributes
Enumeration of allowed attribute names -
m_isFlexible
private boolean m_isFlexibleFlexible element handling flag. -
m_isOrdered
private boolean m_isOrderedFlag for ordered child content. -
m_isChoice
private boolean m_isChoiceFlag for choice child content. -
m_isAllowRepeats
private boolean m_isAllowRepeatsFlag for repeated child elements to be ignored. -
m_usingName
Name for labeled child content defined elsewhere. -
m_labelName
Name for labeled child content potentially referenced elsewhere.
-
-
Constructor Details
-
StructureAttributes
public StructureAttributes()Constructor.
-
-
Method Details
-
isFlexible
public boolean isFlexible()Get flexible flag.- Returns:
- flexible flag
-
setFlexible
public void setFlexible(boolean flexible) Set flexible flag.- Parameters:
flexible-
-
isOrdered
public boolean isOrdered()Check if child components are ordered.- Returns:
trueif ordered,falseif not
-
setOrdered
public void setOrdered(boolean ordered) Set child components ordered flag.- Parameters:
ordered-trueif ordered,falseif not
-
isChoice
public boolean isChoice()Check if child components are a choice.- Returns:
trueif choice,falseif not
-
setChoice
public void setChoice(boolean choice) Set child components choice flag.- Parameters:
choice-trueif choice,falseif not
-
isAllowRepeats
public boolean isAllowRepeats()Check if repeated child elements are allowed.- Returns:
trueif repeats allowed,falseif not
-
setAllowRepeats
public void setAllowRepeats(boolean ignore) Set repeated child elements allowed flag.- Parameters:
ignore-trueif repeated child elements to be allowed,falseif not
-
getUsingName
Get name for child component list definition.- Returns:
- text of name defining child components (
nullif none)
-
setUsingName
Set name for child component list definition.- Parameters:
name- text of name defining child components (nullif none)
-
getLabelName
Get label name for child component list.- Returns:
- label name text (
nullif none)
-
setLabelName
Set label name for child component list.- Parameters:
name- label text for name (nullif none)
-
prevalidate
Description copied from class:AttributeBasePrevalidate attribute information. The prevalidation step is used to check attribute values in isolation, such as the settings for enumerated values and class file information. This empty base class implementation should be overridden by each subclass that requires prevalidation handling.- Overrides:
prevalidatein classAttributeBase- Parameters:
vctx- validation context
-
validate
Description copied from class:AttributeBaseValidate attribute information. The validation step is used for checking the interactions between attributes, such as references to named elements and namespace usage. TheAttributeBase.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.- Overrides:
validatein classAttributeBase- Parameters:
vctx- validation context
-