Package com.sun.tools.ws.wsdl.framework
Class TWSDLParserContextImpl
- java.lang.Object
-
- com.sun.tools.ws.wsdl.framework.TWSDLParserContextImpl
-
- All Implemented Interfaces:
TWSDLParserContext
public class TWSDLParserContextImpl extends Object implements TWSDLParserContext
The context used by parser classes.- Author:
- WS Development Team
-
-
Constructor Summary
Constructors Constructor Description TWSDLParserContextImpl(DOMForest forest, AbstractDocument doc, ArrayList<ParserListener> listeners, ErrorReceiver errReceiver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfireDoneParsingEntity(QName element, Entity entity)voidfireIgnoringExtension(Element e, Entity entity)StringgetDefaultNamespaceURI()Gives default namespaceAbstractDocumentgetDocument()booleangetFollowImports()LocatorgetLocation(Element e)gives the location information for the given Element.StringgetNamespaceURI(String prefix)Gives the namespace URI for a given prefixIterable<String>getPrefixes()Gives the prefixes in the current contextStringgetWSDLLocation()voidpop()pops the parsing contextvoidpopWSDLLocation()voidpush()Pushes the parsing contextvoidpushWSDLLocation()voidregisterNamespaces(Element e)Registers naemespace declarations of a givenElementfound in the WSDLvoidsetFollowImports(boolean b)voidsetWSDLLocation(String loc)QNametranslateQualifiedName(Locator locator, String s)
-
-
-
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:TWSDLParserContextPushes the parsing context- Specified by:
pushin interfaceTWSDLParserContext
-
pop
public void pop()
Description copied from interface:TWSDLParserContextpops the parsing context- Specified by:
popin interfaceTWSDLParserContext
-
getNamespaceURI
public String getNamespaceURI(String prefix)
Description copied from interface:TWSDLParserContextGives the namespace URI for a given prefix- Specified by:
getNamespaceURIin interfaceTWSDLParserContext- Parameters:
prefix- non-null prefix- Returns:
- null of the prefix is not found
-
getPrefixes
public Iterable<String> getPrefixes()
Description copied from interface:TWSDLParserContextGives the prefixes in the current context- Specified by:
getPrefixesin interfaceTWSDLParserContext
-
getDefaultNamespaceURI
public String getDefaultNamespaceURI()
Description copied from interface:TWSDLParserContextGives default namespace- Specified by:
getDefaultNamespaceURIin interfaceTWSDLParserContext- Returns:
- null if there is no default namespace declaration found
-
registerNamespaces
public void registerNamespaces(Element e)
Description copied from interface:TWSDLParserContextRegisters naemespace declarations of a givenElementfound in the WSDL- Specified by:
registerNamespacesin interfaceTWSDLParserContext- Parameters:
e-Elementwhose namespace declarations need to be registered
-
getLocation
public Locator getLocation(Element e)
Description copied from interface:TWSDLParserContextgives the location information for the given Element.- Specified by:
getLocationin interfaceTWSDLParserContext
-
pushWSDLLocation
public void pushWSDLLocation()
-
popWSDLLocation
public void popWSDLLocation()
-
setWSDLLocation
public void setWSDLLocation(String loc)
-
getWSDLLocation
public String getWSDLLocation()
-
-