|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.xsd.impl.XSDefinitionImpl
public class XSDefinitionImpl
Represents a XML schema definition.
Constructor Summary | |
---|---|
XSDefinitionImpl()
|
Method Summary | ||
---|---|---|
boolean |
equals(java.lang.Object obj)
|
|
java.util.List<XSDefinition> |
getAggregatedDefinitions()
Get the aggregated definitions for a facade XSDefinition |
|
org.w3c.dom.Document |
getDocument()
Get the DOM representation of the XSD |
|
java.net.URI |
getLocation()
Get the location of the XSD |
|
java.lang.String |
getNamespace()
Returns the namespace of this XmlSchema definition. |
|
XmlSchema |
getSchema()
Returns the XmlSchema definition model |
|
XmlSchemaCollection |
getSchemaCollection()
|
|
XmlSchemaElement |
getXmlSchemaElement(javax.xml.namespace.QName name)
Get an XSD element by QName |
|
static
|
getXmlSchemaObject(XmlSchema schema,
javax.xml.namespace.QName name,
java.lang.Class<T> type)
|
|
XmlSchemaType |
getXmlSchemaType(javax.xml.namespace.QName name)
Get an XSD type by QName |
|
int |
hashCode()
|
|
boolean |
isUnresolved()
Returns true if the model element is unresolved. |
|
void |
setAggregatedDefinitions(java.util.List<XSDefinition> definitions)
Set the aggregated definitions for a facade XSDefinition |
|
void |
setDocument(org.w3c.dom.Document document)
Set the DOM representation of the XSD |
|
void |
setLocation(java.net.URI location)
Set the location of the XSD |
|
void |
setNamespace(java.lang.String namespace)
Sets the namespace of this XmlSchema definition. |
|
void |
setSchema(XmlSchema definition)
Sets the XmlSchema definition model |
|
void |
setSchemaCollection(XmlSchemaCollection schemaCollection)
|
|
void |
setUnresolved(boolean undefined)
Sets whether the model element is unresolved. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSDefinitionImpl()
Method Detail |
---|
public XmlSchema getSchema()
XSDefinition
getSchema
in interface XSDefinition
public void setSchema(XmlSchema definition)
XSDefinition
setSchema
in interface XSDefinition
definition
- the XmlSchema definition modelpublic boolean isUnresolved()
Base
isUnresolved
in interface Base
public void setUnresolved(boolean undefined)
Base
setUnresolved
in interface Base
undefined
- whether the model element is unresolvedpublic java.lang.String getNamespace()
XSDefinition
getNamespace
in interface XSDefinition
public void setNamespace(java.lang.String namespace)
XSDefinition
setNamespace
in interface XSDefinition
namespace
- the namespace of this XmlSchema definitionpublic java.net.URI getLocation()
XSDefinition
getLocation
in interface XSDefinition
public void setLocation(java.net.URI location)
XSDefinition
setLocation
in interface XSDefinition
location
- the location to setpublic org.w3c.dom.Document getDocument()
XSDefinition
getDocument
in interface XSDefinition
public void setDocument(org.w3c.dom.Document document)
XSDefinition
setDocument
in interface XSDefinition
document
- the document to setpublic XmlSchemaCollection getSchemaCollection()
getSchemaCollection
in interface XSDefinition
public void setSchemaCollection(XmlSchemaCollection schemaCollection)
setSchemaCollection
in interface XSDefinition
schemaCollection
- the schemaCollection to setpublic int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public static <T extends XmlSchemaObject> T getXmlSchemaObject(XmlSchema schema, javax.xml.namespace.QName name, java.lang.Class<T> type)
public XmlSchemaElement getXmlSchemaElement(javax.xml.namespace.QName name)
XSDefinition
getXmlSchemaElement
in interface XSDefinition
name
- The element name
public XmlSchemaType getXmlSchemaType(javax.xml.namespace.QName name)
XSDefinition
getXmlSchemaType
in interface XSDefinition
name
- The type name
public java.util.List<XSDefinition> getAggregatedDefinitions()
XSDefinition
getAggregatedDefinitions
in interface XSDefinition
public void setAggregatedDefinitions(java.util.List<XSDefinition> definitions)
XSDefinition
setAggregatedDefinitions
in interface XSDefinition
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |