Package org.jibx.binding.model
Class NestingAttributes
java.lang.Object
org.jibx.binding.model.AttributeBase
org.jibx.binding.model.NestingAttributes
Model component for nesting attribute group in binding definition.
- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
private int
Actual selected style.private String
Supplied style name.static final StringArray
Enumeration of allowed attribute names(package private) static final EnumSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getStyle()
Get style value.Get style string value.void
prevalidate
(ValidationContext vctx) Prevalidate attribute information.void
setStyleName
(String name) Set style name.Methods inherited from class org.jibx.binding.model.AttributeBase
validate
-
Field Details
-
s_allowedAttributes
Enumeration of allowed attribute names -
ATTRIBUTE_STYLE
public static final int ATTRIBUTE_STYLE- See Also:
-
ELEMENT_STYLE
public static final int ELEMENT_STYLE- See Also:
-
s_styleEnum
-
m_styleName
Supplied style name. -
m_styleIndex
private int m_styleIndexActual selected style.
-
-
Constructor Details
-
NestingAttributes
public NestingAttributes()
-
-
Method Details
-
getStyleName
Get style string value.- Returns:
- style string value (
null
if undefined at this level)
-
getStyle
public int getStyle()Get style value. This method is only usable after a call toAttributeBase.validate(org.jibx.binding.model.ValidationContext)
.- Returns:
- style value
-
setStyleName
Set style name.- Parameters:
name
- style name (null
to undefine style at this level)
-
prevalidate
Description copied from class:AttributeBase
Prevalidate 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:
prevalidate
in classAttributeBase
- Parameters:
vctx
- validation context
-