Package org.jibx.schema.attributes
Class FormChoiceAttribute
- java.lang.Object
-
- org.jibx.schema.attributes.AttributeBase
-
- org.jibx.schema.attributes.FormChoiceAttribute
-
- All Implemented Interfaces:
IComponent
public class FormChoiceAttribute extends AttributeBase
Attribute to set form of name (qualified or unqualified).- Author:
- Dennis M. Sosnoski
-
-
Field Summary
Fields Modifier and Type Field Description static intQUALIFIED_FORMstatic org.jibx.util.StringArrays_allowedAttributesList of allowed attribute names.static org.jibx.runtime.EnumSets_formValuesstatic intUNQUALIFIED_FORM-
Fields inherited from interface org.jibx.schema.IComponent
SCHEMA_NAMESPACE
-
-
Constructor Summary
Constructors Constructor Description FormChoiceAttribute(SchemaBase owner)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetForm()Get 'form' attribute type code.StringgetFormText()Get 'form' attribute text.booleanisQualified(boolean def)Check if qualified.voidsetForm(int type)Set 'form' attribute type code.-
Methods inherited from class org.jibx.schema.attributes.AttributeBase
getOwner, prevalidate, validate
-
-
-
-
Field Detail
-
s_allowedAttributes
public static final org.jibx.util.StringArray s_allowedAttributes
List of allowed attribute names.
-
QUALIFIED_FORM
public static final int QUALIFIED_FORM
- See Also:
- Constant Field Values
-
UNQUALIFIED_FORM
public static final int UNQUALIFIED_FORM
- See Also:
- Constant Field Values
-
s_formValues
public static final org.jibx.runtime.EnumSet s_formValues
-
-
Constructor Detail
-
FormChoiceAttribute
public FormChoiceAttribute(SchemaBase owner)
Constructor.- Parameters:
owner- owning element
-
-
Method Detail
-
getForm
public int getForm()
Get 'form' attribute type code.- Returns:
- type
-
setForm
public void setForm(int type)
Set 'form' attribute type code.- Parameters:
type- code
-
getFormText
public String getFormText()
Get 'form' attribute text.- Returns:
- text (
nullif not set)
-
isQualified
public boolean isQualified(boolean def)
Check if qualified.- Parameters:
def- default if not overridden- Returns:
trueif qualified,falseif not
-
-