Package com.sun.tools.ws.wsdl.parser
Class WSDLInternalizationLogic
- java.lang.Object
-
- com.sun.tools.ws.wsdl.parser.WSDLInternalizationLogic
-
- All Implemented Interfaces:
InternalizationLogic
public class WSDLInternalizationLogic extends Object implements InternalizationLogic
- Author:
- Vivek Pandey
-
-
Constructor Summary
Constructors Constructor Description WSDLInternalizationLogic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckIfValidTargetNode(DOMForest parent, Element bindings, Element target)Checks if the specified element is a valid target node to attach a customization.XMLFilterImplcreateExternalReferenceFinder(DOMForest parent)Creates a new instance of XMLFilter that can be used to find references to external schemas.ElementrefineSchemaTarget(Element target)Prepares an element that actually receives customizations.ElementrefineWSDLTarget(Element target)Prepares a WSDL element that actually receives customizations.
-
-
-
Method Detail
-
createExternalReferenceFinder
public XMLFilterImpl createExternalReferenceFinder(DOMForest parent)
Description copied from interface:InternalizationLogicCreates a new instance of XMLFilter that can be used to find references to external schemas.Schemas that are included/imported need to be a part of
DOMForest, and this filter will be expected to find such references.Once such a reference is found, the filter is expected to call the parse method of DOMForest.
DOMForestwill register ErrorHandler to the returned object, so any error should be sent to that error handler.- Specified by:
createExternalReferenceFinderin interfaceInternalizationLogic- Returns:
- This method returns
XMLFilterImplbecause the filter has to be usable for two directions (wrapping a reader and wrapping a ContentHandler)
-
checkIfValidTargetNode
public boolean checkIfValidTargetNode(DOMForest parent, Element bindings, Element target)
Description copied from interface:InternalizationLogicChecks if the specified element is a valid target node to attach a customization.- Specified by:
checkIfValidTargetNodein interfaceInternalizationLogic- Parameters:
parent- The owner DOMForest object. Probably useful only to obtain context information, such as error handler.bindings- <jaxb:bindings> element or a customization element.- Returns:
- true if it's OK, false if not.
-
refineSchemaTarget
public Element refineSchemaTarget(Element target)
Description copied from interface:InternalizationLogicPrepares an element that actually receives customizations.For example, in XML Schema, target nodes can be any schema element but it is always the <xsd:appinfo> element that receives customization.
- Specified by:
refineSchemaTargetin interfaceInternalizationLogic- Parameters:
target- The target node designated by the customization.- Returns:
- Always return non-null valid object
-
refineWSDLTarget
public Element refineWSDLTarget(Element target)
Description copied from interface:InternalizationLogicPrepares a WSDL element that actually receives customizations.- Specified by:
refineWSDLTargetin interfaceInternalizationLogic- Parameters:
target- The target node designated by the customization.- Returns:
- Always return non-null valid object
-
-