com.eviware.soapui.impl.wadl.inference.schema.types
Class ComplexType

java.lang.Object
  extended by com.eviware.soapui.impl.wadl.inference.schema.types.ComplexType
All Implemented Interfaces:
Type

public class ComplexType
extends java.lang.Object
implements Type

ComplexType corresponds to an xs:complexType. It's definition is displayed in the schema for which it belongs.

Author:
Dain Nilsson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.wadl.inference.schema.Type
Type.Factory
 
Constructor Summary
ComplexType(com.eviware.soapui.inferredSchema.ComplexTypeConfig xml, Schema schema)
           
ComplexType(Schema schema, java.lang.String name, boolean completed)
           
 
Method Summary
 java.lang.String getName()
          Return the name for the type, not including namespace prefix.
 Schema getSchema()
          Getter for the schema in which the element/attribute with this type lives.
 com.eviware.soapui.inferredSchema.TypeReferenceConfig save()
          Serialize instance to XmlObject.
 void save(com.eviware.soapui.inferredSchema.ComplexTypeConfig xml)
           
 void setContent(Content content)
           
 void setSchema(Schema schema)
          Setter for the schema in which this type lives.
 java.lang.String toString()
           
 Type validate(Context context)
          Validate an element/attribute with this type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComplexType

public ComplexType(Schema schema,
                   java.lang.String name,
                   boolean completed)

ComplexType

public ComplexType(com.eviware.soapui.inferredSchema.ComplexTypeConfig xml,
                   Schema schema)
Method Detail

save

public void save(com.eviware.soapui.inferredSchema.ComplexTypeConfig xml)

save

public com.eviware.soapui.inferredSchema.TypeReferenceConfig save()
Description copied from interface: Type
Serialize instance to XmlObject.

Specified by:
save in interface Type
Returns:
Returns an XmlObject storing the variables of this instance.

setContent

public void setContent(Content content)

validate

public Type validate(Context context)
              throws org.apache.xmlbeans.XmlException
Description copied from interface: Type
Validate an element/attribute with this type.

Specified by:
validate in interface Type
Parameters:
context - A Context object holding the current
Returns:
Returns a Type that is valid for the element/attribute, quite possibly this Type instance itself.
Throws:
org.apache.xmlbeans.XmlException

getName

public java.lang.String getName()
Description copied from interface: Type
Return the name for the type, not including namespace prefix.

Specified by:
getName in interface Type
Returns:
The name of the type.

getSchema

public Schema getSchema()
Description copied from interface: Type
Getter for the schema in which the element/attribute with this type lives.

Specified by:
getSchema in interface Type
Returns:
The Schema for the type.

setSchema

public void setSchema(Schema schema)
Description copied from interface: Type
Setter for the schema in which this type lives.

Specified by:
setSchema in interface Type

toString

public java.lang.String toString()
Specified by:
toString in interface Type
Overrides:
toString in class java.lang.Object


Copyright © 2005-2009 eviware.com. All Rights Reserved.