|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis.wsdl.symbolTable.SymTabEntry
org.apache.axis.wsdl.symbolTable.TypeEntry
public abstract class TypeEntry
This class represents a wsdl types entry that is supported by the WSDL2Java emitter. A TypeEntry has a QName representing its XML name and a name, which in the WSDL2Java back end is its full java name. The TypeEntry may also have a Node, which locates the definition of the emit type in the xml. A TypeEntry object extends SymTabEntry and is built by the SymbolTable class for each supported root complexType, simpleType, and elements that are defined or encountered.
SymTabEntry | TypeEntry / \ Type Element | | (BaseType, (DefinedElement, CollectionType CollectionElement, DefinedType, UndefinedElement) UndefinedType) UndefinedType and UndefinedElement are placeholders when the real type or element is not encountered yet. Both of these implement the Undefined interface. A TypeEntry whose java (or other language) name depends on an Undefined type, will have its name initialization deferred until the Undefined type is replaced with a defined type. The updateUndefined() method is invoked by the UndefinedDelegate to update the information. Each TypeEntry whose language name depends on another TypeEntry will have the refType field set. For example:
Field Summary | |
---|---|
protected QName |
componentType
|
protected java.util.Vector |
containedAttributes
contained attributes in the schema's type definition |
protected java.util.Vector |
containedElements
contained elements in the schema's type definition |
protected java.lang.String |
dims
Field dims |
protected boolean |
isBaseType
Field isBaseType |
protected boolean |
isSimpleType
Field isSimpleType |
protected QName |
itemQName
If this TypeEntry represents an array with elements inside a "wrapper" this field can optionally change the inner QName (default is |
protected org.w3c.dom.Node |
node
Field node |
protected boolean |
onlyLiteralReference
Field onlyLiteralReference |
protected TypeEntry |
refType
Field refType |
protected java.util.HashSet |
types
Field types |
protected boolean |
undefined
Field undefined |
protected boolean |
underlTypeNillable
|
Fields inherited from class org.apache.axis.wsdl.symbolTable.SymTabEntry |
---|
name, qname |
Constructor Summary | |
---|---|
protected |
TypeEntry(QName pqName)
Create a TypeEntry object for an xml construct name that represents a base type |
protected |
TypeEntry(QName pqName,
org.w3c.dom.Node pNode)
Create a TypeEntry object for an xml construct that is not a base type |
protected |
TypeEntry(QName pqName,
TypeEntry refType,
org.w3c.dom.Node pNode,
java.lang.String dims)
Create a TypeEntry object for an xml construct that references another type. |
Method Summary | |
---|---|
java.lang.String |
getBaseType()
Returns the Base Type Name. |
QName |
getComponentType()
Return the QName of the component if this is an array type |
java.util.Vector |
getContainedAttributes()
|
java.util.Vector |
getContainedElements()
|
java.lang.String |
getDimensions()
Return the dimensions of this type, which can be 0 or more "[]". |
QName |
getItemQName()
|
java.util.HashSet |
getNestedTypes(SymbolTable symbolTable,
boolean derivedFlag)
This method returns a set of all the nested types. |
org.w3c.dom.Node |
getNode()
Query the node for this type. |
TypeEntry |
getRefType()
If this type references another type, return that type, otherwise return null. |
protected TypeEntry |
getUndefinedTypeRef()
getUndefinedTypeRef returns the Undefined TypeEntry that this entry depends on or NULL. |
boolean |
getUnderlTypeNillable()
Return whether the underlying type is nillable if this is an array type. |
boolean |
isBaseType()
Method isBaseType |
boolean |
isOnlyLiteralReferenced()
Is this type references ONLY as a literal type? If a binding's message's soapBody says: use="literal", then a type is referenced literally. |
boolean |
isSimpleType()
Method isSimpleType |
void |
setBaseType(boolean baseType)
Method setBaseType |
void |
setComponentType(QName componentType)
Set the QName of the component if this is an array type |
void |
setContainedAttributes(java.util.Vector containedAttributes)
|
void |
setContainedElements(java.util.Vector containedElements)
|
void |
setItemQName(QName itemQName)
|
void |
setOnlyLiteralReference(boolean set)
Set the isOnlyLiteralReference flag. |
void |
setRefType(TypeEntry refType)
Method setRefType |
void |
setSimpleType(boolean simpleType)
Method setSimpleType |
void |
setUnderlTypeNillable(boolean underlTypeNillable)
Set the boolean indicating whether underlying type of array is nillable. |
java.lang.String |
toString()
Get string representation. |
protected java.lang.String |
toString(java.lang.String indent)
Get string representation with indentation |
protected boolean |
updateUndefined(TypeEntry oldRef,
TypeEntry newRef)
UpdateUndefined is called when the ref TypeEntry is finally known. |
Methods inherited from class org.apache.axis.wsdl.symbolTable.SymTabEntry |
---|
getDynamicVar, getName, getQName, isReferenced, setDynamicVar, setIsReferenced, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected org.w3c.dom.Node node
protected TypeEntry refType
protected java.lang.String dims
protected boolean underlTypeNillable
protected QName componentType
protected QName itemQName
protected boolean undefined
protected boolean isBaseType
protected boolean isSimpleType
protected boolean onlyLiteralReference
protected java.util.HashSet types
protected java.util.Vector containedElements
protected java.util.Vector containedAttributes
Constructor Detail |
---|
protected TypeEntry(QName pqName, TypeEntry refType, org.w3c.dom.Node pNode, java.lang.String dims)
pqName
- refType
- pNode
- dims
- protected TypeEntry(QName pqName, org.w3c.dom.Node pNode)
pqName
- pNode
- protected TypeEntry(QName pqName)
pqName
- Method Detail |
---|
public org.w3c.dom.Node getNode()
public java.lang.String getBaseType()
public boolean isBaseType()
public void setBaseType(boolean baseType)
baseType
- public boolean isSimpleType()
public void setSimpleType(boolean simpleType)
simpleType
- public boolean isOnlyLiteralReferenced()
public void setOnlyLiteralReference(boolean set)
set
- protected TypeEntry getUndefinedTypeRef()
protected boolean updateUndefined(TypeEntry oldRef, TypeEntry newRef) throws java.io.IOException
oldRef
- The TypeEntry representing the Undefined TypeEntrynewRef
- The replacement TypeEntry
java.io.IOException
public TypeEntry getRefType()
public void setRefType(TypeEntry refType)
refType
- public java.lang.String getDimensions()
public boolean getUnderlTypeNillable()
public void setUnderlTypeNillable(boolean underlTypeNillable)
public QName getComponentType()
public void setComponentType(QName componentType)
public QName getItemQName()
public void setItemQName(QName itemQName)
public java.lang.String toString()
toString
in class SymTabEntry
protected java.lang.String toString(java.lang.String indent)
toString
in class SymTabEntry
indent
-
public java.util.HashSet getNestedTypes(SymbolTable symbolTable, boolean derivedFlag)
symbolTable
- is the symbolTablederivedFlag
- should be set if all dependendent derived types should also be
returned.
public java.util.Vector getContainedAttributes()
public void setContainedAttributes(java.util.Vector containedAttributes)
containedAttributes
- The containedAttributes to set.public java.util.Vector getContainedElements()
public void setContainedElements(java.util.Vector containedElements)
containedElements
- The containedElements to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |