Package org.jibx.binding.model
Class NestingAttributes
- java.lang.Object
-
- org.jibx.binding.model.AttributeBase
-
- org.jibx.binding.model.NestingAttributes
-
public class NestingAttributes extends AttributeBase
Model component for nesting attribute group in binding definition.- Author:
- Dennis M. Sosnoski
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTE_STYLEstatic intELEMENT_STYLEprivate intm_styleIndexActual selected style.private java.lang.Stringm_styleNameSupplied style name.static StringArrays_allowedAttributesEnumeration of allowed attribute names(package private) static EnumSets_styleEnum
-
Constructor Summary
Constructors Constructor Description NestingAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStyle()Get style value.java.lang.StringgetStyleName()Get style string value.voidprevalidate(ValidationContext vctx)Prevalidate attribute information.voidsetStyleName(java.lang.String name)Set style name.-
Methods inherited from class org.jibx.binding.model.AttributeBase
validate
-
-
-
-
Field Detail
-
s_allowedAttributes
public static final StringArray s_allowedAttributes
Enumeration of allowed attribute names
-
ATTRIBUTE_STYLE
public static final int ATTRIBUTE_STYLE
- See Also:
- Constant Field Values
-
ELEMENT_STYLE
public static final int ELEMENT_STYLE
- See Also:
- Constant Field Values
-
s_styleEnum
static final EnumSet s_styleEnum
-
m_styleName
private java.lang.String m_styleName
Supplied style name.
-
m_styleIndex
private int m_styleIndex
Actual selected style.
-
-
Method Detail
-
getStyleName
public java.lang.String getStyleName()
Get style string value.- Returns:
- style string value (
nullif 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
public void setStyleName(java.lang.String name)
Set style name.- Parameters:
name- style name (nullto undefine style at this level)
-
prevalidate
public void prevalidate(ValidationContext vctx)
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
-
-