org.apache.woden.internal.schema
Class SchemaImpl

java.lang.Object
  extended by org.apache.woden.internal.schema.SchemaImpl
All Implemented Interfaces:
Schema
Direct Known Subclasses:
ImportedSchemaImpl, InlinedSchemaImpl

public abstract class SchemaImpl
extends java.lang.Object
implements Schema

Abstract implementation of an XML Schema.

Author:
jkaputin@apache.org

Constructor Summary
SchemaImpl()
           
 
Method Summary
 java.net.URI getNamespace()
          Returns a URI representing the targetNamespace attribute of a <xs:schema> element or the namespace attribute of a <xs:import> element.
 java.lang.String getNamespaceAsString()
           
 org.apache.ws.commons.schema.XmlSchema getSchemaDefinition()
          Returns an XmlSchema representing the schema definition inlined by a <xs:schema> element or imported by a <xs:import> element.
 XMLElement getXMLElement()
          Returns the XMLElement representing the xs:schema or xs:import element within the wsdl:types element.
 boolean isReferenceable()
           
 void setNamespace(java.net.URI namespace)
          Set the targetNamespace attribute of a <xs:schema> element or the namespace attribute of a <xs:import> element.
 void setReferenceable(boolean referenceable)
           
 void setSchemaDefinition(org.apache.ws.commons.schema.XmlSchema schemaDef)
          Sets the schema definition for an inlined schema or schema import to the specified XmlSchema.
 void setXMLElement(XMLElement xsdElement)
          Sets the XMLElement representing the underlying xs:schema or xs:import element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaImpl

public SchemaImpl()
Method Detail

setNamespace

public void setNamespace(java.net.URI namespace)
Description copied from interface: Schema
Set the targetNamespace attribute of a <xs:schema> element or the namespace attribute of a <xs:import> element.

Specified by:
setNamespace in interface Schema

getNamespace

public java.net.URI getNamespace()
Description copied from interface: Schema
Returns a URI representing the targetNamespace attribute of a <xs:schema> element or the namespace attribute of a <xs:import> element.

Specified by:
getNamespace in interface Schema
Returns:
a URI representing the schema's namespace

setSchemaDefinition

public void setSchemaDefinition(org.apache.ws.commons.schema.XmlSchema schemaDef)
Description copied from interface: Schema
Sets the schema definition for an inlined schema or schema import to the specified XmlSchema.

Specified by:
setSchemaDefinition in interface Schema
Parameters:
schemaDef - the XmlSchema representing this schema

getSchemaDefinition

public org.apache.ws.commons.schema.XmlSchema getSchemaDefinition()
Description copied from interface: Schema
Returns an XmlSchema representing the schema definition inlined by a <xs:schema> element or imported by a <xs:import> element.

Specified by:
getSchemaDefinition in interface Schema
Returns:
the XmlSchema representing schema definition.

getXMLElement

public XMLElement getXMLElement()
Description copied from interface: Schema
Returns the XMLElement representing the xs:schema or xs:import element within the wsdl:types element. This provides an 'wrapper' to the underlying XML Schema infoset for applications that need schema processing alternatives to Apache WS Commons XmlSchema.

Specified by:
getXMLElement in interface Schema
Returns:
the XMLElement that wraps the underlying schema or schema import element

setXMLElement

public void setXMLElement(XMLElement xsdElement)
Description copied from interface: Schema
Sets the XMLElement representing the underlying xs:schema or xs:import element.

Specified by:
setXMLElement in interface Schema
Parameters:
xsdElement - the XMLElement

setReferenceable

public void setReferenceable(boolean referenceable)

isReferenceable

public boolean isReferenceable()

getNamespaceAsString

public java.lang.String getNamespaceAsString()


Copyright © 2007. All Rights Reserved.