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

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

public class SimpleType
extends java.lang.Object
implements Type

SimpleType corresponds to an instance of a xs:simpleType. Each element or attribute with a value of a specific xs:simpleType should have its own instance of SimpleType.

Author:
Dain Nilsson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.wadl.inference.schema.Type
Type.Factory
 
Constructor Summary
SimpleType(Schema schema, org.apache.xmlbeans.XmlAnySimpleType simpleType, boolean completed)
           
SimpleType(com.eviware.soapui.inferredSchema.SimpleTypeConfig xml, Schema schema)
           
 
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.SimpleTypeConfig 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

SimpleType

public SimpleType(Schema schema,
                  org.apache.xmlbeans.XmlAnySimpleType simpleType,
                  boolean completed)

SimpleType

public SimpleType(com.eviware.soapui.inferredSchema.SimpleTypeConfig xml,
                  Schema schema)
Method Detail

save

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