Java Code Examples for com.sun.tools.internal.xjc.util.DOMUtils#getFirstChildElement()
The following examples show how to use
com.sun.tools.internal.xjc.util.DOMUtils#getFirstChildElement() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Internalizer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public Element refineSchemaTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, Constants.NS_XSD, "annotation"); if (annotation == null) { // none exists. need to make one annotation = insertXMLSchemaElement(target, "annotation"); } // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, Constants.NS_XSD, "appinfo"); if (appinfo == null) { // none exists. need to make one appinfo = insertXMLSchemaElement(annotation, "appinfo"); } return appinfo; }
Example 2
Source File: WSDLInternalizationLogic.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@Override public Element refineSchemaTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, Constants.NS_XSD, "annotation"); if(annotation==null) // none exists. need to make one annotation = insertXMLSchemaElement( target, "annotation" ); // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, Constants.NS_XSD, "appinfo" ); if(appinfo==null) // none exists. need to make one appinfo = insertXMLSchemaElement( annotation, "appinfo" ); return appinfo; }
Example 3
Source File: Internalizer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public Element refineSchemaTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, Constants.NS_XSD, "annotation"); if (annotation == null) { // none exists. need to make one annotation = insertXMLSchemaElement(target, "annotation"); } // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, Constants.NS_XSD, "appinfo"); if (appinfo == null) { // none exists. need to make one appinfo = insertXMLSchemaElement(annotation, "appinfo"); } return appinfo; }
Example 4
Source File: WSDLInternalizationLogic.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override public Element refineSchemaTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, Constants.NS_XSD, "annotation"); if(annotation==null) // none exists. need to make one annotation = insertXMLSchemaElement( target, "annotation" ); // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, Constants.NS_XSD, "appinfo" ); if(appinfo==null) // none exists. need to make one appinfo = insertXMLSchemaElement( annotation, "appinfo" ); return appinfo; }
Example 5
Source File: Internalizer.java From hottub with GNU General Public License v2.0 | 6 votes |
public Element refineSchemaTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, Constants.NS_XSD, "annotation"); if (annotation == null) { // none exists. need to make one annotation = insertXMLSchemaElement(target, "annotation"); } // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, Constants.NS_XSD, "appinfo"); if (appinfo == null) { // none exists. need to make one appinfo = insertXMLSchemaElement(annotation, "appinfo"); } return appinfo; }
Example 6
Source File: WSDLInternalizationLogic.java From hottub with GNU General Public License v2.0 | 6 votes |
@Override public Element refineSchemaTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, Constants.NS_XSD, "annotation"); if(annotation==null) // none exists. need to make one annotation = insertXMLSchemaElement( target, "annotation" ); // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, Constants.NS_XSD, "appinfo" ); if(appinfo==null) // none exists. need to make one appinfo = insertXMLSchemaElement( annotation, "appinfo" ); return appinfo; }
Example 7
Source File: Internalizer.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public Element refineSchemaTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, Constants.NS_XSD, "annotation"); if (annotation == null) { // none exists. need to make one annotation = insertXMLSchemaElement(target, "annotation"); } // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, Constants.NS_XSD, "appinfo"); if (appinfo == null) { // none exists. need to make one appinfo = insertXMLSchemaElement(annotation, "appinfo"); } return appinfo; }
Example 8
Source File: WSDLInternalizationLogic.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public Element refineWSDLTarget(Element target){ // look for existing xs:annotation Element JAXWSBindings = DOMUtils.getFirstChildElement(target, JAXWSBindingsConstants.NS_JAXWS_BINDINGS, "bindings"); if(JAXWSBindings==null) // none exists. need to make one JAXWSBindings = insertJAXWSBindingsElement(target, "bindings" ); return JAXWSBindings; }
Example 9
Source File: XMLSchemaInternalizationLogic.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Element refineTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, WellKnownNamespace.XML_SCHEMA, "annotation"); if(annotation==null) // none exists. need to make one annotation = insertXMLSchemaElement( target, "annotation" ); // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, WellKnownNamespace.XML_SCHEMA, "appinfo" ); if(appinfo==null) // none exists. need to make one appinfo = insertXMLSchemaElement( annotation, "appinfo" ); return appinfo; }
Example 10
Source File: Internalizer.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Element refineWSDLTarget(Element target) { // look for existing xs:annotation Element JAXWSBindings = DOMUtils.getFirstChildElement(target, JAXWSBindingsConstants.NS_JAXWS_BINDINGS, "bindings"); if (JAXWSBindings == null) { // none exists. need to make one JAXWSBindings = insertJAXWSBindingsElement(target, "bindings"); } return JAXWSBindings; }
Example 11
Source File: Internalizer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Element refineWSDLTarget(Element target) { // look for existing xs:annotation Element JAXWSBindings = DOMUtils.getFirstChildElement(target, JAXWSBindingsConstants.NS_JAXWS_BINDINGS, "bindings"); if (JAXWSBindings == null) { // none exists. need to make one JAXWSBindings = insertJAXWSBindingsElement(target, "bindings"); } return JAXWSBindings; }
Example 12
Source File: WSDLInternalizationLogic.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public Element refineWSDLTarget(Element target){ // look for existing xs:annotation Element JAXWSBindings = DOMUtils.getFirstChildElement(target, JAXWSBindingsConstants.NS_JAXWS_BINDINGS, "bindings"); if(JAXWSBindings==null) // none exists. need to make one JAXWSBindings = insertJAXWSBindingsElement(target, "bindings" ); return JAXWSBindings; }
Example 13
Source File: XMLSchemaInternalizationLogic.java From hottub with GNU General Public License v2.0 | 5 votes |
public Element refineTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, WellKnownNamespace.XML_SCHEMA, "annotation"); if(annotation==null) // none exists. need to make one annotation = insertXMLSchemaElement( target, "annotation" ); // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, WellKnownNamespace.XML_SCHEMA, "appinfo" ); if(appinfo==null) // none exists. need to make one appinfo = insertXMLSchemaElement( annotation, "appinfo" ); return appinfo; }
Example 14
Source File: XMLSchemaInternalizationLogic.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Element refineTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, WellKnownNamespace.XML_SCHEMA, "annotation"); if(annotation==null) // none exists. need to make one annotation = insertXMLSchemaElement( target, "annotation" ); // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, WellKnownNamespace.XML_SCHEMA, "appinfo" ); if(appinfo==null) // none exists. need to make one appinfo = insertXMLSchemaElement( annotation, "appinfo" ); return appinfo; }
Example 15
Source File: WSDLInternalizationLogic.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public Element refineWSDLTarget(Element target){ // look for existing xs:annotation Element JAXWSBindings = DOMUtils.getFirstChildElement(target, JAXWSBindingsConstants.NS_JAXWS_BINDINGS, "bindings"); if(JAXWSBindings==null) // none exists. need to make one JAXWSBindings = insertJAXWSBindingsElement(target, "bindings" ); return JAXWSBindings; }
Example 16
Source File: XMLSchemaInternalizationLogic.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Element refineTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, WellKnownNamespace.XML_SCHEMA, "annotation"); if(annotation==null) // none exists. need to make one annotation = insertXMLSchemaElement( target, "annotation" ); // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, WellKnownNamespace.XML_SCHEMA, "appinfo" ); if(appinfo==null) // none exists. need to make one appinfo = insertXMLSchemaElement( annotation, "appinfo" ); return appinfo; }
Example 17
Source File: XMLSchemaInternalizationLogic.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Element refineTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, WellKnownNamespace.XML_SCHEMA, "annotation"); if(annotation==null) // none exists. need to make one annotation = insertXMLSchemaElement( target, "annotation" ); // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, WellKnownNamespace.XML_SCHEMA, "appinfo" ); if(appinfo==null) // none exists. need to make one appinfo = insertXMLSchemaElement( annotation, "appinfo" ); return appinfo; }
Example 18
Source File: XMLSchemaInternalizationLogic.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Element refineTarget(Element target) { // look for existing xs:annotation Element annotation = DOMUtils.getFirstChildElement(target, WellKnownNamespace.XML_SCHEMA, "annotation"); if(annotation==null) // none exists. need to make one annotation = insertXMLSchemaElement( target, "annotation" ); // then look for appinfo Element appinfo = DOMUtils.getFirstChildElement(annotation, WellKnownNamespace.XML_SCHEMA, "appinfo" ); if(appinfo==null) // none exists. need to make one appinfo = insertXMLSchemaElement( annotation, "appinfo" ); return appinfo; }
Example 19
Source File: WSDLInternalizationLogic.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public Element refineWSDLTarget(Element target){ // look for existing xs:annotation Element JAXWSBindings = DOMUtils.getFirstChildElement(target, JAXWSBindingsConstants.NS_JAXWS_BINDINGS, "bindings"); if(JAXWSBindings==null) // none exists. need to make one JAXWSBindings = insertJAXWSBindingsElement(target, "bindings" ); return JAXWSBindings; }
Example 20
Source File: Internalizer.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Element refineWSDLTarget(Element target) { // look for existing xs:annotation Element JAXWSBindings = DOMUtils.getFirstChildElement(target, JAXWSBindingsConstants.NS_JAXWS_BINDINGS, "bindings"); if (JAXWSBindings == null) { // none exists. need to make one JAXWSBindings = insertJAXWSBindingsElement(target, "bindings"); } return JAXWSBindings; }