Groovy Documentation

com.predic8.schema
[Groovy] Class Schema

java.lang.Object
  com.predic8.soamodel.XMLElement
      com.predic8.schema.SchemaComponent
          com.predic8.schema.Schema

class Schema
extends SchemaComponent

Field Summary
static JQName DATE

static JQName ELEMENTNAME

static JQName INT

static JQName INTEGER

static JQName STRING

 
Fields inherited from class XMLElement
namespaces
 
Property Summary
Annotation annotation

String attributeFormDefault

List attributeGroups

List attributes

String baseDir

List complexTypes

Definitions definitions

if the schema is embedded in a WSDL document, definitions is a reference to the schema.

String elementFormDefault

List elements

List groups

List imports

List includedPaths

includedPaths contains a list of Strings with the real schema location and is used to prevent a cycling include circle to come to a deadlock.

List includes

includes contains a list of Include objects for each included schema.

ResourceResolver resourceResolver

List simpleTypes

String targetNamespace

 
Constructor Summary
Schema()

Schema(String tns)

 
Method Summary
void add(ComplexType ct)

def asXml(def namespaces)

def create(def creator, CreatorContext ctx)

boolean equals(def obj)

List getAllElements()

List getAllSchemas()

Attribute getAttribute(QName ref)

Attribute getAttribute(String name)

AttributeGroup getAttributeGroup(QName ref)

AttributeGroup getAttributeGroup(String name)

ComplexType getComplexType(String typeName)

Element getElement(QName elementRef)

Resolves the element object for the given qname from the known schemas.

Element getElement(String elementName)

protected def getElementName()

Group getGroup(QName qname)

Schema getImportedSchema(def targetNamespace)

List getImportedSchemas()

List getImportedSchemas(def importedSchemas)

Schema getSchema()

SimpleType getSimpleType(String typeName)

TypeDefinition getType(QName type)

Resolves the type object for the given qname from the known schemas.

TypeDefinition getType(String typeName)

ComplexType newComplexType(String name)

ComplexType newComplexType()

Element newElement(String name, JQName type)

Element newElement(String name, String type)

Element newElement(String name)

SimpleType newSimpleType()

SimpleType newSimpleType(String name)

protected def parseAttributes(def token, def ctx)

protected def parseChildren(def token, def child, def ctx)

String toString()

List validate(AbstractParserContext ctx)

 
Methods inherited from class SchemaComponent
create, getAsString, getNamespaceUri, getPrefix, getRequestTemplate, getSchemaFragment, parseAttributes, parseChildren
 
Methods inherited from class XMLElement
getElementName, getNamespace, getNamespaceContext, getNamespaceUri, getPrefix, getPrefix, getQNameForPN, getTypeQName, getTypeString, parse, parseAttributes, parseChildren, parseNamespaces, parseText
 

Field Detail

DATE

public static final JQName DATE


ELEMENTNAME

public static final JQName ELEMENTNAME


INT

public static final JQName INT


INTEGER

public static final JQName INTEGER


STRING

public static final JQName STRING


 
Property Detail

annotation

Annotation annotation


attributeFormDefault

String attributeFormDefault


attributeGroups

List attributeGroups


attributes

List attributes


baseDir

String baseDir


complexTypes

List complexTypes


definitions

Definitions definitions
if the schema is embedded in a WSDL document, definitions is a reference to the schema. Definitions is null if the schema is not embedded in a WSDL document.


elementFormDefault

String elementFormDefault


elements

List elements


groups

List groups


imports

List imports


includedPaths

List includedPaths
includedPaths contains a list of Strings with the real schema location and is used to prevent a cycling include circle to come to a deadlock.


includes

List includes
includes contains a list of Include objects for each included schema.


resourceResolver

ResourceResolver resourceResolver


simpleTypes

List simpleTypes


targetNamespace

String targetNamespace


 
Constructor Detail

Schema

Schema()


Schema

Schema(String tns)


 
Method Detail

add

void add(ComplexType ct)


asXml

def asXml(def namespaces)


create

def create(def creator, CreatorContext ctx)


equals

boolean equals(def obj)


getAllElements

List getAllElements()


getAllSchemas

List getAllSchemas()


getAttribute

Attribute getAttribute(QName ref)


getAttribute

Attribute getAttribute(String name)


getAttributeGroup

AttributeGroup getAttributeGroup(QName ref)


getAttributeGroup

AttributeGroup getAttributeGroup(String name)


getComplexType

ComplexType getComplexType(String typeName)


getElement

Element getElement(QName elementRef)
Resolves the element object for the given qname from the known schemas. If the schema is embedded in a WSDL document, all other schemas in the WSDl will be checked, even if there are no imports of them in this schema.
Parameters:
groovy.xml.QName
Returns:
Element


getElement

Element getElement(String elementName)


getElementName

protected def getElementName()


getGroup

Group getGroup(QName qname)


getImportedSchema

Schema getImportedSchema(def targetNamespace)


getImportedSchemas

List getImportedSchemas()


getImportedSchemas

List getImportedSchemas(def importedSchemas)


getSchema

Schema getSchema()


getSimpleType

SimpleType getSimpleType(String typeName)


getType

TypeDefinition getType(QName type)
Resolves the type object for the given qname from the known schemas. If the schema is embedded in a WSDL document, all other schemas in the WSDl will be checked, even if there are no imports of them in this schema.
Parameters:
groovy.xml.QName
Returns:
TypeDefinition


getType

TypeDefinition getType(String typeName)


newComplexType

ComplexType newComplexType(String name)


newComplexType

ComplexType newComplexType()


newElement

Element newElement(String name, JQName type)


newElement

Element newElement(String name, String type)


newElement

Element newElement(String name)


newSimpleType

SimpleType newSimpleType()


newSimpleType

SimpleType newSimpleType(String name)


parseAttributes

protected def parseAttributes(def token, def ctx)


parseChildren

protected def parseChildren(def token, def child, def ctx)


toString

String toString()


validate

List validate(AbstractParserContext ctx)


 

Groovy Documentation