org.jibx.schema.attributes
Class FormChoiceAttribute

java.lang.Object
  extended by org.jibx.schema.attributes.AttributeBase
      extended by 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
static int QUALIFIED_FORM
           
static StringArray s_allowedAttributes
          List of allowed attribute names.
static EnumSet s_formValues
           
static int UNQUALIFIED_FORM
           
 
Fields inherited from interface org.jibx.schema.IComponent
SCHEMA_NAMESPACE
 
Constructor Summary
FormChoiceAttribute(SchemaBase owner)
          Constructor.
 
Method Summary
 int getForm()
          Get 'form' attribute type code.
 String getFormText()
          Get 'form' attribute text.
 boolean isQualified(boolean def)
          Check if qualified.
 void setForm(int type)
          Set 'form' attribute type code.
 
Methods inherited from class org.jibx.schema.attributes.AttributeBase
getOwner, prevalidate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_allowedAttributes

public static final 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 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 -

getFormText

public String getFormText()
Get 'form' attribute text.

Returns:
text (null if not set)

isQualified

public boolean isQualified(boolean def)
Check if qualified.

Parameters:
def - default if not overridden
Returns:
true if qualified, false if not


Copyright © 2005-2012 jibx.org. All Rights Reserved.