Class JaxRpcMappingNode
- java.lang.Object
-
- com.sun.xml.rpc.processor.generator.nodes.JaxRpcMappingNode
-
- Direct Known Subclasses:
ExceptionMappingNode,JavaWsdlMappingNode,JavaXmlTypeMappingNode,PackageMappingNode,ServiceEndpointInterfaceMappingNode,ServiceInterfaceMappingNode
public abstract class JaxRpcMappingNode extends Object
- Version:
- 1.1.5
- Author:
- Qingqing Ouyang
-
-
Constructor Summary
Constructors Constructor Description JaxRpcMappingNode()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ElementappendChild(Node parent, String elementName)Append a new element child to the current nodestatic NodeappendTextChild(Node parent, String elementName, int value)Append a new text childstatic NodeappendTextChild(Node parent, String elementName, String text)Append a new text childprotected voiddebug(String className, String msg)static NodeforceAppendTextChild(Node parent, String elementName, String text)Append a new text child even if text is emptyprotected static DocumentgetOwnerDocument(Node node)static voidsetAttribute(Element parent, String elementName, String text)Append a new attribute to an elementstatic voidsetAttributeNS(Element element, String prefix, String namespaceURI)Set a namespace attribute on an element.
-
-
-
Method Detail
-
getOwnerDocument
protected static Document getOwnerDocument(Node node)
- Returns:
- the Document for the given node
-
appendChild
public static Element appendChild(Node parent, String elementName)
Append a new element child to the current node
- Parameters:
parent- is the parent node for the new child elementelementName- is new element tag name- Returns:
- the newly created child node
-
appendTextChild
public static Node appendTextChild(Node parent, String elementName, String text)
Append a new text child
- Parameters:
parent- for the new child elementelementName- is the new element tag nametext- the text for the new element- Returns:
- the newly create child node
-
appendTextChild
public static Node appendTextChild(Node parent, String elementName, int value)
Append a new text child
- Parameters:
parent- for the new child elementelementName- is the new element tag namevalue- the int value for the new element- Returns:
- the newly create child node
-
forceAppendTextChild
public static Node forceAppendTextChild(Node parent, String elementName, String text)
Append a new text child even if text is empty
- Parameters:
parent- for the new child elementelementName- is the new element tag nametext- the text for the new element- Returns:
- the newly create child node
-
setAttribute
public static void setAttribute(Element parent, String elementName, String text)
Append a new attribute to an element
- Parameters:
parent- for the new child elementelementName- is the new element tag nametext- the text for the new element
-
setAttributeNS
public static void setAttributeNS(Element element, String prefix, String namespaceURI)
Set a namespace attribute on an element.- Parameters:
element- on which to set attributeprefix- raw prefix (without "xmlns:")namespaceURI- namespace URI to which prefix is mapped.
-
-