com.sun.tools.ws.wsdl.framework
Class TWSDLParserContextImpl

java.lang.Object
  extended by com.sun.tools.ws.wsdl.framework.TWSDLParserContextImpl
All Implemented Interfaces:
TWSDLParserContext

public class TWSDLParserContextImpl
extends Object
implements TWSDLParserContext

The context used by parser classes.


Constructor Summary
TWSDLParserContextImpl(DOMForest forest, AbstractDocument doc, ArrayList<ParserListener> listeners, ErrorReceiver errReceiver)
           
 
Method Summary
 void fireDoneParsingEntity(QName element, Entity entity)
           
 void fireIgnoringExtension(Element e, Entity entity)
           
 String getDefaultNamespaceURI()
          Gives default namespace
 AbstractDocument getDocument()
           
 boolean getFollowImports()
           
 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
 String getWSDLLocation()
           
 void pop()
          pops the parsing context
 void popWSDLLocation()
           
 void push()
          Pushes the parsing context
 void pushWSDLLocation()
           
 void registerNamespaces(Element e)
          Registers naemespace declarations of a given Element found in the WSDL
 void setFollowImports(boolean b)
           
 void setWSDLLocation(String loc)
           
 QName translateQualifiedName(Locator locator, String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWSDLParserContextImpl

public TWSDLParserContextImpl(DOMForest forest,
                              AbstractDocument doc,
                              ArrayList<ParserListener> listeners,
                              ErrorReceiver errReceiver)
Method Detail

getDocument

public AbstractDocument getDocument()

getFollowImports

public boolean getFollowImports()

setFollowImports

public void setFollowImports(boolean b)

push

public void push()
Description copied from interface: TWSDLParserContext
Pushes the parsing context

Specified by:
push in interface TWSDLParserContext

pop

public void pop()
Description copied from interface: TWSDLParserContext
pops the parsing context

Specified by:
pop in interface TWSDLParserContext

getNamespaceURI

public String getNamespaceURI(String prefix)
Description copied from interface: TWSDLParserContext
Gives the namespace URI for a given prefix

Specified by:
getNamespaceURI in interface TWSDLParserContext
Parameters:
prefix - non-null prefix
Returns:
null of the prefix is not found

getPrefixes

public Iterable<String> getPrefixes()
Description copied from interface: TWSDLParserContext
Gives the prefixes in the current context

Specified by:
getPrefixes in interface TWSDLParserContext

getDefaultNamespaceURI

public String getDefaultNamespaceURI()
Description copied from interface: TWSDLParserContext
Gives default namespace

Specified by:
getDefaultNamespaceURI in interface TWSDLParserContext
Returns:
null if there is no default namespace declaration found

registerNamespaces

public void registerNamespaces(Element e)
Description copied from interface: TWSDLParserContext
Registers naemespace declarations of a given Element found in the WSDL

Specified by:
registerNamespaces in interface TWSDLParserContext
Parameters:
e - Element whose namespace declarations need to be registered

getLocation

public Locator getLocation(Element e)
Description copied from interface: TWSDLParserContext
gives the location information for the given Element.

Specified by:
getLocation in interface TWSDLParserContext

translateQualifiedName

public QName translateQualifiedName(Locator locator,
                                    String s)

fireIgnoringExtension

public void fireIgnoringExtension(Element e,
                                  Entity entity)

fireDoneParsingEntity

public void fireDoneParsingEntity(QName element,
                                  Entity entity)

pushWSDLLocation

public void pushWSDLLocation()

popWSDLLocation

public void popWSDLLocation()

setWSDLLocation

public void setWSDLLocation(String loc)

getWSDLLocation

public String getWSDLLocation()