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

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

public class EmptyType
extends java.lang.Object
implements Type

EmptyRtpe corresponds to an instance of a type with no attributes, nor any content.

Author:
Dain Nilsson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.wadl.inference.schema.Type
Type.Factory
 
Constructor Summary
EmptyType(com.eviware.soapui.inferredSchema.EmptyTypeConfig xml, Schema schema)
           
EmptyType(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.EmptyTypeConfig 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

EmptyType

public EmptyType(Schema schema)

EmptyType

public EmptyType(com.eviware.soapui.inferredSchema.EmptyTypeConfig xml,
                 Schema schema)
Method Detail

save

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

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

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


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