|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis.wsdl.symbolTable.SymTabEntry org.apache.axis.wsdl.symbolTable.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 String |
dims
|
protected boolean |
isBaseType
|
protected boolean |
isSimpleType
|
protected Node |
node
|
protected boolean |
onlyLiteralReference
|
protected TypeEntry |
refType
|
protected boolean |
undefined
|
Fields inherited from class org.apache.axis.wsdl.symbolTable.SymTabEntry |
name, qname |
Constructor Summary | |
protected |
TypeEntry(javax.xml.namespace.QName pqName)
Create a TypeEntry object for an xml construct name that represents a base type |
protected |
TypeEntry(javax.xml.namespace.QName pqName,
Node pNode)
Create a TypeEntry object for an xml construct that is not a base type |
protected |
TypeEntry(javax.xml.namespace.QName pqName,
TypeEntry refType,
Node pNode,
String dims)
Create a TypeEntry object for an xml construct that references another type. |
Method Summary | |
String |
getBaseType()
Returns the Base Type Name. |
String |
getDimensions()
Return the dimensions of this type, which can be 0 or more "[]". |
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 |
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()
|
void |
setOnlyLiteralReference(boolean set)
Set the isOnlyLiteralReference flag. |
void |
setRefType(TypeEntry refType)
|
void |
setSimpleType(boolean simpleType)
|
String |
toString()
Get string representation. |
protected String |
toString(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 Node node
protected TypeEntry refType
protected String dims
protected boolean undefined
protected boolean isBaseType
protected boolean isSimpleType
protected boolean onlyLiteralReference
Constructor Detail |
protected TypeEntry(javax.xml.namespace.QName pqName, TypeEntry refType, Node pNode, String dims)
protected TypeEntry(javax.xml.namespace.QName pqName, Node pNode)
protected TypeEntry(javax.xml.namespace.QName pqName)
Method Detail |
public Node getNode()
public String getBaseType()
public boolean isBaseType()
public boolean isSimpleType()
public void setSimpleType(boolean simpleType)
public boolean isOnlyLiteralReferenced()
public void setOnlyLiteralReference(boolean set)
protected TypeEntry getUndefinedTypeRef()
protected boolean updateUndefined(TypeEntry oldRef, TypeEntry newRef) throws IOException
oldRef
- The TypeEntry representing the Undefined TypeEntrynewRef
- The replacement TypeEntry
IOException
public TypeEntry getRefType()
public void setRefType(TypeEntry refType)
public String getDimensions()
public String toString()
toString
in class SymTabEntry
protected String toString(String indent)
toString
in class SymTabEntry
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |