Methods Summary |
---|
public java.lang.String | getBaseType()Returns the 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.
if (isBaseType) {
return name;
} else {
return null;
}
|
public javax.xml.namespace.QName | getComponentType()Return the QName of the component if this is an array type
return componentType;
|
public java.util.Vector | getContainedAttributes()
return containedAttributes;
|
public java.util.Vector | getContainedElements()
return containedElements;
|
public java.lang.String | getDimensions()Return the dimensions of this type, which can be 0 or more "[]".
return dims;
|
public javax.xml.namespace.QName | getItemQName()
return itemQName;
|
public java.util.HashSet | getNestedTypes(SymbolTable symbolTable, boolean derivedFlag)This method returns a set of all the nested types.
Nested types are types declared within this TypeEntry (or descendents)
plus any extended types and the extended type nested types
The elements of the returned HashSet are Types.
if( types == null) {
types = Utils.getNestedTypes(this, symbolTable, derivedFlag);
}
return types;
|
public org.w3c.dom.Node | getNode()Query the node for this type.
return node;
|
public org.apache.axis.wsdl.symbolTable.TypeEntry | getRefType()If this type references another type, return that type, otherwise return null.
return refType;
|
protected org.apache.axis.wsdl.symbolTable.TypeEntry | getUndefinedTypeRef()getUndefinedTypeRef returns the Undefined TypeEntry that this entry depends on or NULL.
if (this instanceof Undefined) {
return this;
}
if (undefined && (refType != null)) {
if (refType.undefined) {
TypeEntry uType = refType;
while (!(uType instanceof Undefined)) {
uType = uType.refType;
}
return uType;
}
}
return null;
|
public boolean | getUnderlTypeNillable()Return whether the underlying type is nillable if this is an array type.
// refType could refer to array with underlying nillable
// type - set the underlTypeNillable to true if this is
// the case.
if (!underlTypeNillable
&& !getDimensions().equals("")
&& refType != null) {
underlTypeNillable = refType.getUnderlTypeNillable();
}
return underlTypeNillable;
|
public boolean | isBaseType()Method isBaseType
return isBaseType;
|
public 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. Note that that type's contained types (ie., an address
contains a phone#) are not referenced literally. Since a type
that is ONLY referenced as a literal may cause a generator to act
differently (like WSDL2Java), this extra reference distinction is
needed.
return onlyLiteralReference;
|
public boolean | isSimpleType()Method isSimpleType
return isSimpleType;
|
public void | setBaseType(boolean baseType)Method setBaseType
isBaseType = baseType;
|
public void | setComponentType(javax.xml.namespace.QName componentType)Set the QName of the component if this is an array type
this.componentType = componentType;
|
public void | setContainedAttributes(java.util.Vector containedAttributes)
this.containedAttributes = containedAttributes;
|
public void | setContainedElements(java.util.Vector containedElements)
this.containedElements = containedElements;
|
public void | setItemQName(javax.xml.namespace.QName itemQName)
this.itemQName = itemQName;
|
public void | setOnlyLiteralReference(boolean set)Set the isOnlyLiteralReference flag.
onlyLiteralReference = set;
|
public void | setRefType(org.apache.axis.wsdl.symbolTable.TypeEntry refType)Method setRefType
this.refType = refType;
|
public void | setSimpleType(boolean simpleType)Method setSimpleType
isSimpleType = simpleType;
|
public void | setUnderlTypeNillable(boolean underlTypeNillable)Set the boolean indicating whether underlying type of array is nillable.
this.underlTypeNillable = underlTypeNillable;
|
public java.lang.String | toString()Get string representation.
return toString("");
|
protected java.lang.String | toString(java.lang.String indent)Get string representation with indentation
String refString = indent + "RefType: null \n";
if (refType != null) {
refString = indent + "RefType:\n" + refType.toString(indent + " ")
+ "\n";
}
return super.toString(indent)
+ indent + "Class: " + this.getClass().getName() + "\n"
+ indent + "Base?: " + isBaseType + "\n"
+ indent + "Undefined?: " + undefined + "\n"
+ indent + "isSimpleType? " + isSimpleType + "\n"
+ indent + "Node: " + getNode() + "\n"
+ indent + "Dims: " + dims + "\n"
+ indent + "isOnlyLiteralReferenced: " + onlyLiteralReference + "\n"
+ refString;
|
protected boolean | updateUndefined(org.apache.axis.wsdl.symbolTable.TypeEntry oldRef, org.apache.axis.wsdl.symbolTable.TypeEntry newRef)UpdateUndefined is called when the ref TypeEntry is finally known.
boolean changedState = false;
// Replace refType with the new one if applicable
if (refType == oldRef) {
refType = newRef;
changedState = true;
// Detect a loop
TypeEntry te = refType;
while ((te != null) && (te != this)) {
te = te.refType;
}
if (te == this) {
// Detected a loop.
undefined = false;
isBaseType = false;
node = null;
throw new IOException(
Messages.getMessage(
"undefinedloop00", getQName().toString()));
}
}
// Update information if refType is now defined
if ((refType != null) && undefined && (refType.undefined == false)) {
undefined = false;
changedState = true;
isBaseType = (refType.isBaseType && refType.dims.equals("")
&& dims.equals(""));
}
return changedState;
|