org.jibx.schema.attributes
Class DefRefAttributeGroup

java.lang.Object
  extended by org.jibx.schema.attributes.AttributeBase
      extended by org.jibx.schema.attributes.DefRefAttributeGroup
All Implemented Interfaces:
IComponent

public class DefRefAttributeGroup
extends AttributeBase

Schema defRef attribute group.

Author:
Dennis M. Sosnoski

Field Summary
private  java.lang.String m_name
          Name definition.
private  QName m_ref
          Reference definition.
static StringArray s_allowedAttributes
          List of allowed attribute names.
 
Fields inherited from interface org.jibx.schema.IComponent
SCHEMA_NAMESPACE
 
Constructor Summary
DefRefAttributeGroup(SchemaBase owner)
          Constructor.
 
Method Summary
 java.lang.String getName()
          Get 'name' attribute value.
 QName getRef()
          Get 'ref' attribute value.
 void prevalidate(ValidationContext vctx)
          Prevalidate component information.
 void setName(java.lang.String name)
          Set 'name' attribute value.
 void setRef(QName ref)
          Set 'ref' attribute value.
private static DefRefAttributeGroup unmarshalFactory(IUnmarshallingContext ictx)
          Factory method for use during unmarshalling.
 
Methods inherited from class org.jibx.schema.attributes.AttributeBase
getOwner, 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.


m_name

private java.lang.String m_name
Name definition.


m_ref

private QName m_ref
Reference definition.

Constructor Detail

DefRefAttributeGroup

public DefRefAttributeGroup(SchemaBase owner)
Constructor.

Parameters:
owner - owning element
Method Detail

unmarshalFactory

private static DefRefAttributeGroup unmarshalFactory(IUnmarshallingContext ictx)
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

getName

public java.lang.String getName()
Get 'name' attribute value.

Returns:
name

setName

public void setName(java.lang.String name)
Set 'name' attribute value.

Parameters:
name -

getRef

public QName getRef()
Get 'ref' attribute value.

Returns:
ref

setRef

public void setRef(QName ref)
Set 'ref' attribute value.

Parameters:
ref -

prevalidate

public void prevalidate(ValidationContext vctx)
Description copied from class: AttributeBase
Prevalidate component information. The prevalidation step is used to check isolated aspects of a component, such as the settings for enumerated values. This empty base class implementation should be overridden by each subclass that requires prevalidation handling.

Specified by:
prevalidate in interface IComponent
Overrides:
prevalidate in class AttributeBase
Parameters:
vctx - validation context


Project Web Site