Groovy Documentation

com.predic8.soamodel
[Groovy] Class XMLElement

java.lang.Object
  com.predic8.soamodel.XMLElement

abstract class XMLElement

Field Summary
protected Map namespaces

Static final String NAMESPACE need to be declared.

 
Property Summary
XMLElement parent

 
Method Summary
protected def getElementName()

def getNamespace(def prefix)

def getNamespaceContext()

String getNamespaceUri()

def getPrefix(String uri)

String getPrefix()

Should be implemented separately in WSDLElement and SchemaComponent.

def getQNameForPN(PrefixedName pn)

QName getTypeQName(String type)

String getTypeString(def qname)

def parse(def token, AbstractParserContext ctx)

protected def parseAttributes(def token, def ctx)

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

protected def parseNamespaces(def token)

protected def parseText(def text)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

namespaces

protected Map namespaces
Static final String NAMESPACE need to be declared. It will be used to choose the right parser for the element.


 
Property Detail

parent

XMLElement parent


 
Method Detail

getElementName

protected def getElementName()


getNamespace

def getNamespace(def prefix)


getNamespaceContext

def getNamespaceContext()


getNamespaceUri

String getNamespaceUri()


getPrefix

def getPrefix(String uri)


getPrefix

String getPrefix()
Should be implemented separately in WSDLElement and SchemaComponent. WSDL elements should return the prefix of their own namespace, like wsdl, soap, http & etc. SchemaComponent should return the prefix of the targetNamespace of the document, like p8, ns0 & etc.


getQNameForPN

def getQNameForPN(PrefixedName pn)


getTypeQName

QName getTypeQName(String type)


getTypeString

String getTypeString(def qname)


parse

def parse(def token, AbstractParserContext ctx)


parseAttributes

protected def parseAttributes(def token, def ctx)


parseChildren

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


parseNamespaces

protected def parseNamespaces(def token)


parseText

protected def parseText(def text)


 

Groovy Documentation