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

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

public class CustomType
extends java.lang.Object
implements Type

CustomType corresponds to any custom type given as a user-defined xsd type definition.

Author:
Dain Nilsson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.wadl.inference.schema.Type
Type.Factory
 
Constructor Summary
CustomType(com.eviware.soapui.inferredSchema.CustomTypeConfig xml, Schema schema)
           
CustomType(java.lang.String name, java.lang.String xsd)
           
 
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.CustomTypeConfig save()
          Serialize instance to XmlObject.
 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

CustomType

public CustomType(java.lang.String name,
                  java.lang.String xsd)

CustomType

public CustomType(com.eviware.soapui.inferredSchema.CustomTypeConfig xml,
                  Schema schema)
Method Detail

save

public com.eviware.soapui.inferredSchema.CustomTypeConfig 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.

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

toString

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

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


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