fr.tireme.schemadoc.SDSchema.XSD
Class XSDSchemaWrapp

java.lang.Object
  extended by fr.tireme.schemadoc.SDSchema.XSD.SDConcreteComponentImpl
      extended by fr.tireme.schemadoc.SDSchema.XSD.XSDSchemaWrapp
All Implemented Interfaces:
SDConcreteComponent, SDSchema

public class XSDSchemaWrapp
extends SDConcreteComponentImpl
implements SDSchema

Author:
Mike Niemaz (niemaz@xrce.xerox.com)

Constructor Summary
XSDSchemaWrapp(org.eclipse.xsd.XSDSchema xsdSchema_)
          Constructor for the XSDSchemaWrapp object
 
Method Summary
 java.util.Iterator eAllContents()
           
 java.util.List getAllAnnotations()
          Gets all annotations contained in this schema and its possible childs (includes & imports)
 java.util.List getAllAttributeDeclarations()
          Gets all attribute declarations contained in this schema and its possible childs (includes & imports)
 java.util.List getAllAttributeGroupDefinitions()
          Gets all attribute group definitions contained in this schema and its possible childs (includes & imports)
 java.util.List getAllElementDeclarations()
          Gets all element declarations contained in this schema and its possible childs (includes & imports)
 java.util.List getAllModelGroupDefinitions()
          Gets all model groups contained in this schema and its possible childs (includes & imports)
 java.util.List getAllNotationDeclarations()
          Gets all notations contained in this schema and its possible childs (includes & imports)
 java.util.List getAllTypeDefinitions()
          Gets all types contained in this schema and its possible childs (includes & imports)
 java.lang.String getAttributeFormDefault()
           
 java.lang.String getAttributeValue(java.lang.String attr_)
          Gets the value of the given attribute (DOM request)
 java.util.List getContents()
           
 SDConcreteComponent getCorrespondingComponent(org.w3c.dom.Node node)
           
 java.lang.String getElementFormDefault()
           
 java.lang.String getIncludeLocalEntryPoint(java.lang.String schemaID)
          Search for the local include that would include the schema represented by the given ID
 SDConcreteComponent getObject(java.lang.String id)
           
 java.util.Map getQNamePrefixToNamespaceMap()
           
 java.lang.String getSchemaErrors()
          Gets the schema errors if any
 java.lang.String getSchemaLocation()
          Gets schema's URI
 java.util.Hashtable getSDProperties()
          Gets all SchemaDoc properties of the current schema
 java.lang.String getSDPublicName()
          Gets the SchemaDoc public name schema property
 java.lang.String getTargetNamespace()
           
 boolean isIncluded(java.lang.String schemaID)
          Is the schema represented by the given ID is included in this schema
 SDConcreteComponent resolve(java.lang.String name)
           
 SDConcreteComponent resolve(java.lang.String namespace, java.lang.String name)
           
 
Methods inherited from class fr.tireme.schemadoc.SDSchema.XSD.SDConcreteComponentImpl
cloneObject, getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDConcreteComponent
cloneObject, getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 

Constructor Detail

XSDSchemaWrapp

public XSDSchemaWrapp(org.eclipse.xsd.XSDSchema xsdSchema_)
Constructor for the XSDSchemaWrapp object

Parameters:
xsdSchema_ - - the xsd schema object to wrap
Method Detail

getContents

public java.util.List getContents()
Specified by:
getContents in interface SDSchema

eAllContents

public java.util.Iterator eAllContents()
Specified by:
eAllContents in interface SDSchema

getIncludeLocalEntryPoint

public java.lang.String getIncludeLocalEntryPoint(java.lang.String schemaID)
                                           throws Xs2dtdException
Search for the local include that would include the schema represented by the given ID

Specified by:
getIncludeLocalEntryPoint in interface SDSchema
Parameters:
schemaID - - schema's ID to search
Returns:
String - include's ID or null
Throws:
Xs2dtdException

isIncluded

public boolean isIncluded(java.lang.String schemaID)
                   throws Xs2dtdException
Is the schema represented by the given ID is included in this schema

Specified by:
isIncluded in interface SDSchema
Parameters:
schemaID - - schema's ID to search
Returns:
boolean - true if found
Throws:
Xs2dtdException

getSchemaLocation

public java.lang.String getSchemaLocation()
Gets schema's URI

Specified by:
getSchemaLocation in interface SDSchema
Returns:
- String URI

getTargetNamespace

public java.lang.String getTargetNamespace()
Specified by:
getTargetNamespace in interface SDSchema

getAttributeFormDefault

public java.lang.String getAttributeFormDefault()
Specified by:
getAttributeFormDefault in interface SDSchema

getElementFormDefault

public java.lang.String getElementFormDefault()
Specified by:
getElementFormDefault in interface SDSchema

getQNamePrefixToNamespaceMap

public java.util.Map getQNamePrefixToNamespaceMap()
Specified by:
getQNamePrefixToNamespaceMap in interface SDSchema

resolve

public SDConcreteComponent resolve(java.lang.String name)
Specified by:
resolve in interface SDSchema

resolve

public SDConcreteComponent resolve(java.lang.String namespace,
                                   java.lang.String name)
Specified by:
resolve in interface SDSchema
Parameters:
namespace -
name -

getCorrespondingComponent

public SDConcreteComponent getCorrespondingComponent(org.w3c.dom.Node node)
Specified by:
getCorrespondingComponent in interface SDSchema
Parameters:
node -

getAllAnnotations

public java.util.List getAllAnnotations()
Gets all annotations contained in this schema and its possible childs (includes & imports)

Specified by:
getAllAnnotations in interface SDSchema
Returns:
List - list

getAllAttributeDeclarations

public java.util.List getAllAttributeDeclarations()
Gets all attribute declarations contained in this schema and its possible childs (includes & imports)

Specified by:
getAllAttributeDeclarations in interface SDSchema
Returns:
List - list

getAllAttributeGroupDefinitions

public java.util.List getAllAttributeGroupDefinitions()
Gets all attribute group definitions contained in this schema and its possible childs (includes & imports)

Specified by:
getAllAttributeGroupDefinitions in interface SDSchema
Returns:
List - list

getAllElementDeclarations

public java.util.List getAllElementDeclarations()
Gets all element declarations contained in this schema and its possible childs (includes & imports)

Specified by:
getAllElementDeclarations in interface SDSchema
Returns:
List - list

getAllModelGroupDefinitions

public java.util.List getAllModelGroupDefinitions()
Gets all model groups contained in this schema and its possible childs (includes & imports)

Specified by:
getAllModelGroupDefinitions in interface SDSchema
Returns:
List - list

getAllNotationDeclarations

public java.util.List getAllNotationDeclarations()
Gets all notations contained in this schema and its possible childs (includes & imports)

Specified by:
getAllNotationDeclarations in interface SDSchema
Returns:
List - list

getAllTypeDefinitions

public java.util.List getAllTypeDefinitions()
Gets all types contained in this schema and its possible childs (includes & imports)

Specified by:
getAllTypeDefinitions in interface SDSchema
Returns:
List - list

getObject

public SDConcreteComponent getObject(java.lang.String id)
Specified by:
getObject in interface SDSchema

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String attr_)
Gets the value of the given attribute (DOM request)

Specified by:
getAttributeValue in interface SDSchema
Returns:
String - attribute's value or null if not found, not specified or has no default value

getSDPublicName

public java.lang.String getSDPublicName()
Gets the SchemaDoc public name schema property

Specified by:
getSDPublicName in interface SDSchema
Returns:
String - public name property

getSDProperties

public java.util.Hashtable getSDProperties()
Gets all SchemaDoc properties of the current schema

Specified by:
getSDProperties in interface SDSchema
Returns:
Hashtable - SdProperties

getSchemaErrors

public java.lang.String getSchemaErrors()
Gets the schema errors if any

Specified by:
getSchemaErrors in interface SDSchema
Returns:
String - errors