org.apache.axis.wsdl
Class Type

java.lang.Object
  |
  +--org.apache.axis.wsdl.SymTabEntry
        |
        +--org.apache.axis.wsdl.Type
Direct Known Subclasses:
BaseJavaType, DefinedType, ElementType, RefdType

public class Type
extends SymTabEntry

This class represents a type that is supported by the WSDL2Java emitter. A Type has a QName representing its XML name and a Java Name, which is its full java name. The Type may also have a Node, which locates the definition of the emit type in the xml. A Type object extends SymTabEntry and is built by the SymbolTable class for each XML complexType, simpleType, or element (necessary for ref=) that is defined or encountered.

Author:
Rich Scheuerle (scheu@us.ibm.com)

Fields inherited from class org.apache.axis.wsdl.SymTabEntry
name, qname
 
Constructor Summary
protected Type(javax.wsdl.QName pqName)
          Create a Type object for an xml construct name that represents a base java type
protected Type(javax.wsdl.QName pqName, java.lang.String pjName, org.w3c.dom.Node pNode)
          Create a Type object for an xml construct that is not a base java type
protected Type(javax.wsdl.QName pqName, Type refType, org.w3c.dom.Node pNode)
          Create a Type object for an xml construct that references another type.
 
Method Summary
 java.lang.String getBaseType()
          Returns the Java Base Type Name.
 java.lang.String getJavaName()
          Query Java Mapping Name
 org.w3c.dom.Node getNode()
          Query Java Mapping Name
 boolean getShouldEmit()
          Query whether a Node should be emitted.
 boolean isDefined()
          Query whether a Node defining the type exists.
 void setShouldEmit(boolean pShouldEmit)
          Indicate whether a Node should be emitted.
 java.lang.String toString()
          Get string representation.
 
Methods inherited from class org.apache.axis.wsdl.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
 

Constructor Detail

Type

protected Type(javax.wsdl.QName pqName)
Create a Type object for an xml construct name that represents a base java type

Type

protected Type(javax.wsdl.QName pqName,
               Type refType,
               org.w3c.dom.Node pNode)
Create a Type object for an xml construct that references another type. The Type corresponding to the ultimate reference type is passed as refType

Type

protected Type(javax.wsdl.QName pqName,
               java.lang.String pjName,
               org.w3c.dom.Node pNode)
Create a Type object for an xml construct that is not a base java type
Method Detail

getJavaName

public java.lang.String getJavaName()
Query Java Mapping Name

getNode

public org.w3c.dom.Node getNode()
Query Java Mapping Name

isDefined

public boolean isDefined()
Query whether a Node defining the type exists.

getShouldEmit

public boolean getShouldEmit()
Query whether a Node should be emitted.

setShouldEmit

public void setShouldEmit(boolean pShouldEmit)
Indicate whether a Node should be emitted.

getBaseType

public java.lang.String getBaseType()
Returns the Java Base Type Name. For example if the Type represents a schema integer, "int" is returned. If this is a user defined type, null is returned.

toString

public java.lang.String toString()
Get string representation.
Overrides:
toString in class SymTabEntry


Copyright © 2001 Apache XML Project. All Rights Reserved.