|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.schema.BeanWriterMetaInfoHolder
public class BeanWriterMetaInfoHolder
This class is used as a holder to pass on the meta information to the bean writer. This meta information is 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!!!!
Field Summary | |
---|---|
protected boolean |
anonymous
|
protected boolean |
choice
|
protected java.util.Map |
elementQNameToDefulatValueMap
|
protected java.util.Map |
elementToJavaClassMap
|
protected java.util.Map |
elementToSchemaQNameMap
|
protected java.util.ArrayList |
enumFacet
|
protected boolean |
extension
|
protected boolean |
hasParticleType
|
protected boolean |
isList
|
protected boolean |
isParticleClass
|
protected boolean |
isUnion
|
protected java.lang.String |
itemTypeClassName
|
protected QName |
itemTypeQName
|
protected long |
lengthFacet
|
protected java.lang.String |
maxExclusiveFacet
|
protected java.lang.String |
maxInclusiveFacet
|
protected long |
maxLengthFacet
|
protected java.util.Map |
memberTypes
|
protected java.util.List |
memberTypesKeys
|
protected java.lang.String |
minExclusiveFacet
|
protected java.lang.String |
minInclusiveFacet
|
protected long |
minLengthFacet
|
protected java.util.List |
nillableQNameList
|
protected boolean |
ordered
|
protected java.lang.String |
ownClassName
|
protected QName |
ownQname
|
protected BeanWriterMetaInfoHolder |
parent
|
protected java.lang.String |
patternFacet
|
protected java.util.Map |
qNameMaxOccursCountMap
|
protected java.util.Map |
qNameMinOccursCountMap
|
protected java.util.Map |
qNameOrderMap
|
protected boolean |
restriction
|
protected boolean |
simple
|
protected java.util.Map |
specialTypeFlagMap
|
protected java.util.Map |
xmlNameJavaNameMap
|
Constructor Summary | |
---|---|
BeanWriterMetaInfoHolder()
|
Method Summary | |
---|---|
void |
addEnumFacet(java.lang.String enumFacet)
Adds the enumeration. |
void |
addMaxOccurs(QName qName,
long maxOccurs)
Adds the maxOccurs associated with a QName. |
void |
addMemberType(QName qname,
java.lang.String className)
|
void |
addMinOccurs(QName qName,
long minOccurs)
Adds the minOccurs associated with a QName. |
void |
addtStatus(QName type,
int mask)
Adds a another status to a particular Qname. |
void |
addXmlNameJavaNameMapping(java.lang.String xmlName,
java.lang.String javaName)
|
void |
clearTables()
Clears the whole set of tables. |
boolean |
getAnyAttributeStatusForQName(QName qName)
Gets whether a given QName has the any attribute status. |
boolean |
getAnyStatusForQName(QName qName)
Gets whether a given QName represents a anyType |
boolean |
getArrayStatusForQName(QName qName)
Gets whether a given QName refers to an array. |
boolean |
getAttributeStatusForQName(QName qName)
Gets whether a given QName is an attribute |
boolean |
getBinaryStatusForQName(QName qName)
Gets whether a given QName refers to binary. |
java.lang.String |
getClassNameForQName(QName eltQName)
Gets the class name for the QName. |
boolean |
getDefaultStatusForQName(QName qName)
checks the element corresponds to the qName type is xsd:anyType |
java.lang.String |
getDefaultValueForQName(QName qname)
gets the default value for qname |
java.util.Iterator |
getElementQNameIterator()
Deprecated. Use #getQNameArray |
java.util.List |
getEnumFacet()
Gets the enumeration. |
java.lang.String |
getExtensionClassName()
Sets the extensions base class name. |
boolean |
getInnerChoiceStatusForQName(QName qName)
|
java.lang.String |
getItemTypeClassName()
|
QName |
getItemTypeQName()
|
java.lang.String |
getJavaName(java.lang.String xmlName)
|
long |
getLengthFacet()
Gets the length facet. |
java.lang.String |
getMaxExclusiveFacet()
Gets the maxExclusive. |
java.lang.String |
getMaxInclusiveFacet()
Gets the maxInclusive. |
long |
getMaxLengthFacet()
Gets the maxLength. |
long |
getMaxOccurs(QName qName)
Gets the maxOccurs associated with a QName. |
java.util.Map |
getMemberTypes()
|
java.util.List |
getMemberTypesKeys()
|
java.lang.String |
getMinExclusiveFacet()
Gets the minExclusive. |
java.lang.String |
getMinInclusiveFacet()
Gets the minInclusive. |
long |
getMinLengthFacet()
Gets the minLength. |
long |
getMinOccurs(QName qName)
Adds the minOccurs associated with a QName. |
boolean |
getOptionalAttributeStatusForQName(QName qName)
Gets whether a given QName has the optional attribute status. |
QName[] |
getOrderedQNameArray()
Gets 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! |
int |
getOrderStartPoint()
Finds the starting count for the addition of new items to the order |
java.lang.String |
getOwnClassName()
|
QName |
getOwnQname()
|
BeanWriterMetaInfoHolder |
getParent()
Gets the parent |
boolean |
getParticleTypeStatusForQName(QName qName)
|
java.lang.String |
getPatternFacet()
Gets the pattern. |
QName[] |
getQNameArray()
Gets the QName array - may not be ordered. |
java.lang.String |
getRestrictionClassName()
|
QName |
getSchemaQNameForQName(QName eltQName)
Gets the schema name for the given QName. |
boolean |
getSimpleStatusForQName(QName qName)
Gets whether a given QName refers to Simple Type. |
boolean |
isAnonymous()
Gets the anonymous status. |
boolean |
isChoice()
|
boolean |
isDefaultValueAvailable(QName qname)
|
boolean |
isExtension()
Gets the extension status. |
boolean |
isExtensionBaseType(QName extensionBaseType)
Checks if it is a extension base type. |
boolean |
isHasParticleType()
|
boolean |
isJavaNameMappingAvailable(java.lang.String xmlName)
|
boolean |
isList()
|
boolean |
isNillable(QName eltQName)
Returns whether a QName is nillable or not |
boolean |
isOrdered()
Gets the ordered status. |
boolean |
isParticleClass()
|
boolean |
isRestriction()
Gets the restriction status. |
boolean |
isRestrictionBaseType(QName restrictionBaseType)
Checks if it is a restriction base type. |
boolean |
isSimple()
|
boolean |
isUnion()
|
void |
registerDefaultValue(QName qname,
java.lang.String value)
this method registers the defult value agaist the element qname. |
void |
registerMapping(QName qName,
QName schemaName,
java.lang.String javaClassName)
Registers a mapping. |
void |
registerMapping(QName qName,
QName schemaName,
java.lang.String javaClassName,
int type)
Registers a mapping. |
void |
registerNillableQName(QName eltQName)
Registers a Qname as nillable The qName better be of an element |
void |
registerQNameIndex(QName qName,
int index)
Registers a QName for the order. |
void |
setAnonymous(boolean anonymous)
Sets the anonymous flag. |
void |
setAsParent(BeanWriterMetaInfoHolder metaInfo)
Creates link to th |
void |
setChoice(boolean choice)
|
void |
setEnumFacet(java.util.ArrayList enumFacet)
Sets the enumeration. |
void |
setExtension(boolean extension)
Sets the extension status. |
void |
setExtensionBaseType(QName extensionBaseType)
Sets the extension basetype. |
void |
setExtensionClassName(java.lang.String extensionClassName)
Sets the extensions base class name. |
void |
setHasParticleType(boolean hasParticleType)
|
void |
setItemTypeClassName(java.lang.String itemTypeClassName)
|
void |
setItemTypeQName(QName itemTypeQName)
|
void |
setLengthFacet(long lengthFacet)
Sets the length facet. |
void |
setList(boolean list)
|
void |
setMaxExclusiveFacet(java.lang.String maxExclusiveFacet)
Sets the maxExclusive. |
void |
setMaxInclusiveFacet(java.lang.String maxInclusiveFacet)
Sets the maxInclusive. |
void |
setMaxLengthFacet(long maxLengthFacet)
Sets the maxLength. |
void |
setMemberTypes(java.util.Map memberTypes)
|
void |
setMemberTypesKeys(java.util.List memberTypesKeys)
|
void |
setMinExclusiveFacet(java.lang.String minExclusiveFacet)
Sets the minExclusive. |
void |
setMinInclusiveFacet(java.lang.String minInclusiveFacet)
Sets the minInclusive. |
void |
setMinLengthFacet(long minLengthFacet)
Sets the minLength. |
void |
setOrdered(boolean ordered)
Sets the ordered flag. |
void |
setOwnClassName(java.lang.String ownClassName)
|
void |
setOwnQname(QName ownQname)
|
void |
setParticleClass(boolean particleClass)
|
void |
setPatternFacet(java.lang.String patternFacet)
Sets the pattern. |
void |
setRestriction(boolean restriction)
Sets the restriction status. |
void |
setRestrictionBaseType(QName restrictionBaseType)
Sets the restriction basetype. |
void |
setRestrictionClassName(java.lang.String restrictionClassName)
Sets the restriction base class name. |
void |
setSimple(boolean simple)
|
void |
setUnion(boolean union)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean ordered
protected boolean anonymous
protected boolean choice
protected boolean simple
protected boolean extension
protected boolean restriction
protected java.util.Map elementToSchemaQNameMap
protected java.util.Map elementToJavaClassMap
protected java.util.Map specialTypeFlagMap
protected java.util.Map qNameMaxOccursCountMap
protected java.util.Map qNameMinOccursCountMap
protected java.util.Map qNameOrderMap
protected QName ownQname
protected java.lang.String ownClassName
protected long lengthFacet
protected long maxLengthFacet
protected long minLengthFacet
protected java.util.ArrayList enumFacet
protected java.lang.String patternFacet
protected java.lang.String maxExclusiveFacet
protected java.lang.String minExclusiveFacet
protected java.lang.String maxInclusiveFacet
protected java.lang.String minInclusiveFacet
protected java.util.Map memberTypes
protected java.util.Map xmlNameJavaNameMap
protected java.util.List memberTypesKeys
protected java.util.Map elementQNameToDefulatValueMap
protected QName itemTypeQName
protected java.lang.String itemTypeClassName
protected boolean isUnion
protected boolean isList
protected boolean isParticleClass
protected boolean hasParticleType
protected java.util.List nillableQNameList
protected BeanWriterMetaInfoHolder parent
Constructor Detail |
---|
public BeanWriterMetaInfoHolder()
Method Detail |
---|
public boolean isChoice()
public void setChoice(boolean choice)
public boolean isSimple()
public void setSimple(boolean simple)
public java.lang.String getOwnClassName()
public void setOwnClassName(java.lang.String ownClassName)
public QName getOwnQname()
public void setOwnQname(QName ownQname)
public BeanWriterMetaInfoHolder getParent()
public boolean isAnonymous()
public void setAnonymous(boolean anonymous)
anonymous
- public java.lang.String getExtensionClassName()
public void setExtensionClassName(java.lang.String extensionClassName)
extensionClassName
- public boolean isExtension()
public void setExtension(boolean extension)
extension
- public java.lang.String getRestrictionClassName()
public void setRestrictionClassName(java.lang.String restrictionClassName)
restrictionClassName
- public boolean isRestriction()
public void setRestriction(boolean restriction)
restriction
- public void setExtensionBaseType(QName extensionBaseType)
extensionBaseType
- public boolean isExtensionBaseType(QName extensionBaseType)
extensionBaseType
- public void setRestrictionBaseType(QName restrictionBaseType)
restrictionBaseType
- public boolean isRestrictionBaseType(QName restrictionBaseType)
restrictionBaseType
- public boolean isOrdered()
public void setOrdered(boolean ordered)
ordered
- public void registerMapping(QName qName, QName schemaName, java.lang.String javaClassName)
qName
- schemaName
- javaClassName
- public void registerNillableQName(QName eltQName)
qName
- schemaName
- javaClassName
- public boolean isNillable(QName eltQName)
eltQName
- public void registerMapping(QName qName, QName schemaName, java.lang.String javaClassName, int type)
qName
- schemaName
- javaClassName
- type
- public void registerDefaultValue(QName qname, java.lang.String value)
qname
- value
- public boolean isDefaultValueAvailable(QName qname)
qname
-
public java.lang.String getDefaultValueForQName(QName qname)
qname
-
public QName getSchemaQNameForQName(QName eltQName)
eltQName
-
public java.lang.String getClassNameForQName(QName eltQName)
eltQName
-
public boolean getAttributeStatusForQName(QName qName)
qName
-
public boolean getDefaultStatusForQName(QName qName)
qName
-
public boolean getAnyStatusForQName(QName qName)
qName
-
public boolean getArrayStatusForQName(QName qName)
qName
-
public boolean getBinaryStatusForQName(QName qName)
qName
-
public boolean getInnerChoiceStatusForQName(QName qName)
qName
-
public boolean getSimpleStatusForQName(QName qName)
qName
-
public boolean getParticleTypeStatusForQName(QName qName)
qName
-
public boolean getAnyAttributeStatusForQName(QName qName)
qName
-
public boolean getOptionalAttributeStatusForQName(QName qName)
qName
- QName of attribute
true
if attribute has optional statuspublic void clearTables()
public void addMinOccurs(QName qName, long minOccurs)
qName
- minOccurs
- public void registerQNameIndex(QName qName, int index)
qName
- index
- public long getMinOccurs(QName qName)
qName
-
public long getMaxOccurs(QName qName)
qName
-
public void addMaxOccurs(QName qName, long maxOccurs)
qName
- maxOccurs
- public java.util.Iterator getElementQNameIterator()
public QName[] getQNameArray()
public QName[] getOrderedQNameArray()
public int getOrderStartPoint()
public void setAsParent(BeanWriterMetaInfoHolder metaInfo)
metaInfo
- public void addtStatus(QName type, int mask)
type
- mask
- public void setLengthFacet(long lengthFacet)
lengthFacet
- public long getLengthFacet()
public void setMaxExclusiveFacet(java.lang.String maxExclusiveFacet)
maxExclusiveFacet
- public java.lang.String getMaxExclusiveFacet()
public void setMinExclusiveFacet(java.lang.String minExclusiveFacet)
minExclusiveFacet
- public java.lang.String getMinExclusiveFacet()
public void setMaxInclusiveFacet(java.lang.String maxInclusiveFacet)
maxInclusiveFacet
- public java.lang.String getMaxInclusiveFacet()
public void setMinInclusiveFacet(java.lang.String minInclusiveFacet)
minInclusiveFacet
- public java.lang.String getMinInclusiveFacet()
public void setMaxLengthFacet(long maxLengthFacet)
maxLengthFacet
- public long getMaxLengthFacet()
public void setMinLengthFacet(long minLengthFacet)
minLengthFacet
- public long getMinLengthFacet()
public void setEnumFacet(java.util.ArrayList enumFacet)
enumFacet
- public void addEnumFacet(java.lang.String enumFacet)
enumFacet
- public java.util.List getEnumFacet()
public void setPatternFacet(java.lang.String patternFacet)
patternFacet
- public java.lang.String getPatternFacet()
public boolean isUnion()
public void setUnion(boolean union)
public java.util.Map getMemberTypes()
public void setMemberTypes(java.util.Map memberTypes)
public java.util.List getMemberTypesKeys()
public void setMemberTypesKeys(java.util.List memberTypesKeys)
public void addMemberType(QName qname, java.lang.String className)
public boolean isList()
public void setList(boolean list)
public QName getItemTypeQName()
public void setItemTypeQName(QName itemTypeQName)
public java.lang.String getItemTypeClassName()
public void setItemTypeClassName(java.lang.String itemTypeClassName)
public boolean isParticleClass()
public void setParticleClass(boolean particleClass)
public boolean isHasParticleType()
public void setHasParticleType(boolean hasParticleType)
public void addXmlNameJavaNameMapping(java.lang.String xmlName, java.lang.String javaName)
public boolean isJavaNameMappingAvailable(java.lang.String xmlName)
public java.lang.String getJavaName(java.lang.String xmlName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |