org.apache.axis2.databinding.schema
Class BeanWriterMetaInfoHolder

java.lang.Object
  extended byorg.apache.axis2.databinding.schema.BeanWriterMetaInfoHolder

public class BeanWriterMetaInfoHolder
extends java.lang.Object

This is a class used as a holder to pass on the meta information to the bean writer This meta information will be used by the writer to write the databinding conversion code Note - Metainfholders are not meant to be reused!!!. They are per-class basis and are strictly not thread safe!!!!


Constructor Summary
BeanWriterMetaInfoHolder()
           
 
Method Summary
 void addMaxOccurs(javax.xml.namespace.QName qName, long maxOccurs)
          Add the maxOccurs associated with a QName
 void addMinOccurs(javax.xml.namespace.QName qName, long minOccurs)
          add the maxOccurs associated with a QName
 void clearTables()
          Clears the whole set of tables.
 boolean getAnyAttributeStatusForQName(javax.xml.namespace.QName qName)
          Get whether a given QName has the any attribute status
 boolean getAnyStatusForQName(javax.xml.namespace.QName qName)
          Get whether a given QName represents a anyType
 boolean getArrayStatusForQName(javax.xml.namespace.QName qName)
          Get whether a given QName refers to an array
 boolean getAttributeStatusForQName(javax.xml.namespace.QName qName)
          Get whether a given QName is an attribute
 java.lang.String getClassNameForQName(javax.xml.namespace.QName eltQName)
          get the class name for the QName
 java.util.Iterator getElementQNameIterator()
          Deprecated. Use #getQNameArray
 java.lang.String getExtensionClassName()
          set the extensions base class name.
 long getMaxOccurs(javax.xml.namespace.QName qName)
          get the maxOccurs associated with a QName
 long getMinOccurs(javax.xml.namespace.QName qName)
          Add the minOccurs associated with a QName
 javax.xml.namespace.QName[] getOrderedQNameArray()
          Get the ordered QName array - useful in sequences where the order needs to be preserved Note - #registerQNameIndex needs to be called if this is to work properly!
 javax.xml.namespace.QName[] getQNameArray()
          get the QName array - may not be ordered
 javax.xml.namespace.QName getSchemaQNameForQName(javax.xml.namespace.QName eltQName)
          Get the schema name for the given QName
 boolean isAnonymous()
          get the anon status
 boolean isExtension()
          get the extension status
 boolean isOrdered()
          ge the ordered statu
 void registerMapping(javax.xml.namespace.QName qName, javax.xml.namespace.QName schemaName, java.lang.String javaClassName)
          Register a mapping
 void registerMapping(javax.xml.namespace.QName qName, javax.xml.namespace.QName schemaName, java.lang.String javaClassName, java.lang.Integer type)
          Register a mapping
 void registerQNameIndex(javax.xml.namespace.QName qName, int index)
          register a QName for the order
 void setAnonymous(boolean anonymous)
          Set the anonymous flag
 void setExtension(boolean extension)
          set the extension status
 void setExtensionClassName(java.lang.String extensionClassName)
          set the extensions base class name.
 void setOrdered(boolean ordered)
          set the ordered flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanWriterMetaInfoHolder

public BeanWriterMetaInfoHolder()
Method Detail

isAnonymous

public boolean isAnonymous()
get the anon status

Returns:

setAnonymous

public void setAnonymous(boolean anonymous)
Set the anonymous flag

Parameters:
anonymous -

getExtensionClassName

public java.lang.String getExtensionClassName()
set the extensions base class name. Valid only when the isExtension retruns true

Returns:

setExtensionClassName

public void setExtensionClassName(java.lang.String extensionClassName)
set the extensions base class name. Valid only when the isExtension retruns true

Parameters:
extensionClassName -

isExtension

public boolean isExtension()
get the extension status

Returns:

setExtension

public void setExtension(boolean extension)
set the extension status

Parameters:
extension -

isOrdered

public boolean isOrdered()
ge the ordered statu

Returns:

setOrdered

public void setOrdered(boolean ordered)
set the ordered flag. this marks whether the items are ordered or not

Parameters:
ordered -

registerMapping

public void registerMapping(javax.xml.namespace.QName qName,
                            javax.xml.namespace.QName schemaName,
                            java.lang.String javaClassName)
Register a mapping

Parameters:
qName -
schemaName -
javaClassName -

registerMapping

public void registerMapping(javax.xml.namespace.QName qName,
                            javax.xml.namespace.QName schemaName,
                            java.lang.String javaClassName,
                            java.lang.Integer type)
Register a mapping

Parameters:
qName -
schemaName -
javaClassName -
type -

getSchemaQNameForQName

public javax.xml.namespace.QName getSchemaQNameForQName(javax.xml.namespace.QName eltQName)
Get the schema name for the given QName

Parameters:
eltQName -
Returns:

getClassNameForQName

public java.lang.String getClassNameForQName(javax.xml.namespace.QName eltQName)
get the class name for the QName

Parameters:
eltQName -
Returns:

getAttributeStatusForQName

public boolean getAttributeStatusForQName(javax.xml.namespace.QName qName)
Get whether a given QName is an attribute

Parameters:
qName -
Returns:

getAnyStatusForQName

public boolean getAnyStatusForQName(javax.xml.namespace.QName qName)
Get whether a given QName represents a anyType

Parameters:
qName -
Returns:

getArrayStatusForQName

public boolean getArrayStatusForQName(javax.xml.namespace.QName qName)
Get whether a given QName refers to an array

Parameters:
qName -
Returns:

getAnyAttributeStatusForQName

public boolean getAnyAttributeStatusForQName(javax.xml.namespace.QName qName)
Get whether a given QName has the any attribute status

Parameters:
qName -
Returns:

clearTables

public void clearTables()
Clears the whole set of tables.


addMinOccurs

public void addMinOccurs(javax.xml.namespace.QName qName,
                         long minOccurs)
add the maxOccurs associated with a QName

Parameters:
qName -
minOccurs -

registerQNameIndex

public void registerQNameIndex(javax.xml.namespace.QName qName,
                               int index)
register a QName for the order

Parameters:
qName -
index -

getMinOccurs

public long getMinOccurs(javax.xml.namespace.QName qName)
Add the minOccurs associated with a QName

Parameters:
qName -
Returns:

getMaxOccurs

public long getMaxOccurs(javax.xml.namespace.QName qName)
get the maxOccurs associated with a QName

Parameters:
qName -
Returns:

addMaxOccurs

public void addMaxOccurs(javax.xml.namespace.QName qName,
                         long maxOccurs)
Add the maxOccurs associated with a QName

Parameters:
qName -
maxOccurs -

getElementQNameIterator

public java.util.Iterator getElementQNameIterator()
Deprecated. Use #getQNameArray

Returns:

getQNameArray

public javax.xml.namespace.QName[] getQNameArray()
get the QName array - may not be ordered

Returns:

getOrderedQNameArray

public javax.xml.namespace.QName[] getOrderedQNameArray()
Get the ordered QName array - useful in sequences where the order needs to be preserved Note - #registerQNameIndex needs to be called if this is to work properly!

Returns: