com.sun.tools.ws.api.wsdl
Interface TWSDLParserContext

All Known Implementing Classes:
TWSDLParserContextImpl

public interface TWSDLParserContext

Provides WSDL parsing context. It should be used by the WSDL extension handlers to register their namespaces so that it can be latter used by other extensions to resolve the namespaces.


Method Summary
 String getDefaultNamespaceURI()
          Gives default namespace
 Locator getLocation(Element e)
          gives the location information for the given Element.
 String getNamespaceURI(String prefix)
          Gives the namespace URI for a given prefix
 Iterable<String> getPrefixes()
          Gives the prefixes in the current context
 void pop()
          pops the parsing context
 void push()
          Pushes the parsing context
 void registerNamespaces(Element e)
          Registers naemespace declarations of a given Element found in the WSDL
 

Method Detail

push

void push()
Pushes the parsing context


pop

void pop()
pops the parsing context


getNamespaceURI

String getNamespaceURI(String prefix)
Gives the namespace URI for a given prefix

Parameters:
prefix - non-null prefix
Returns:
null of the prefix is not found

getPrefixes

Iterable<String> getPrefixes()
Gives the prefixes in the current context


getDefaultNamespaceURI

String getDefaultNamespaceURI()
Gives default namespace

Returns:
null if there is no default namespace declaration found

registerNamespaces

void registerNamespaces(Element e)
Registers naemespace declarations of a given Element found in the WSDL

Parameters:
e - Element whose namespace declarations need to be registered

getLocation

Locator getLocation(Element e)
gives the location information for the given Element.