com.eviware.soapui.impl.wadl.inference.schema.content
Class SimpleContent

java.lang.Object
  extended by com.eviware.soapui.impl.wadl.inference.schema.content.SimpleContent
All Implemented Interfaces:
Content

public class SimpleContent
extends java.lang.Object
implements Content

SimpleContent may contain xs:simpleContent.

Author:
Dain Nilsson

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.wadl.inference.schema.Content
Content.Factory
 
Constructor Summary
SimpleContent(Schema schema, java.lang.String initialValue)
           
SimpleContent(Schema schema, org.apache.xmlbeans.XmlAnySimpleType initialType)
           
SimpleContent(com.eviware.soapui.inferredSchema.SimpleContentConfig xml, Schema schema)
           
 
Method Summary
 com.eviware.soapui.inferredSchema.SimpleContentConfig save()
          Save the Content to an XmlObject.
 java.lang.String toString(java.lang.String attrs)
           
 Content validate(Context context)
          Validates an XML document contained in a given Context object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleContent

public SimpleContent(Schema schema,
                     java.lang.String initialValue)

SimpleContent

public SimpleContent(Schema schema,
                     org.apache.xmlbeans.XmlAnySimpleType initialType)

SimpleContent

public SimpleContent(com.eviware.soapui.inferredSchema.SimpleContentConfig xml,
                     Schema schema)
Method Detail

save

public com.eviware.soapui.inferredSchema.SimpleContentConfig save()
Description copied from interface: Content
Save the Content to an XmlObject.

Specified by:
save in interface Content

validate

public Content validate(Context context)
                 throws org.apache.xmlbeans.XmlException
Description copied from interface: Content
Validates an XML document contained in a given Context object.

Specified by:
validate in interface Content
Parameters:
context - A Context object containing the XML data to be validated, and other needed contextual variables.
Returns:
Returns a Content object that is valid for the element/attribute, quite possibly this Content instance itself.
Throws:
org.apache.xmlbeans.XmlException

toString

public java.lang.String toString(java.lang.String attrs)
Specified by:
toString in interface Content


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