Package org.jibx.schema.attributes
Class FormChoiceAttribute
java.lang.Object
org.jibx.schema.attributes.AttributeBase
org.jibx.schema.attributes.FormChoiceAttribute
- All Implemented Interfaces:
IComponent
Attribute to set form of name (qualified or unqualified).
- Author:
- Dennis M. Sosnoski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
'form' attribute type code (-1
if not set).static final int
static final StringArray
List of allowed attribute names.static final EnumSet
static final int
Fields inherited from interface org.jibx.schema.IComponent
SCHEMA_NAMESPACE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getForm()
Get 'form' attribute type code.Get 'form' attribute text.boolean
isQualified
(boolean def) Check if qualified.void
setForm
(int type) Set 'form' attribute type code.private void
setFormText
(String text, IUnmarshallingContext ictx) Set 'form' attribute text.private static FormChoiceAttribute
Factory method for use during unmarshalling.Methods inherited from class org.jibx.schema.attributes.AttributeBase
getOwner, prevalidate, validate
-
Field Details
-
s_allowedAttributes
List of allowed attribute names. -
QUALIFIED_FORM
public static final int QUALIFIED_FORM- See Also:
-
UNQUALIFIED_FORM
public static final int UNQUALIFIED_FORM- See Also:
-
s_formValues
-
m_formType
private int m_formType'form' attribute type code (-1
if not set).
-
-
Constructor Details
-
FormChoiceAttribute
Constructor.- Parameters:
owner
- owning element
-
-
Method Details
-
unmarshalFactory
Factory method for use during unmarshalling. This gets the owning element from the unmarshalling context, and creates an instance of the attribute tied to that element.- Parameters:
ictx
-- Returns:
- constructed instance
-
getForm
public int getForm()Get 'form' attribute type code.- Returns:
- type
-
setForm
public void setForm(int type) Set 'form' attribute type code.- Parameters:
type
-
-
getFormText
Get 'form' attribute text.- Returns:
- text (
null
if not set)
-
setFormText
Set 'form' attribute text. This method is provided only for use when unmarshalling.- Parameters:
text
-ictx
-
-
isQualified
public boolean isQualified(boolean def) Check if qualified.- Parameters:
def
- default if not overridden- Returns:
true
if qualified,false
if not
-