Examples of selectPath()


Examples of org.apache.xmlbeans.XmlObject.selectPath()

      }
      // this is not allowed by Basic Profile.. remove?
      else if( part.getTypeName() != null )
      {
        QName typeName = part.getTypeName();
        XmlObject[] faultPaths = msgXml.selectPath( "declare namespace env='" + soapVersion.getEnvelopeNamespace()
            + "';" + "declare namespace ns='" + typeName.getNamespaceURI() + "';" + "//env:Fault/detail/ns:"
            + part.getName() );

        if( faultPaths.length == 1 )
          return faultName;
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject.selectPath()

      }
      else
      {
        existing.put( wsdlUrl, null );

        XmlObject[] schemas = xmlObject.selectPath( "declare namespace s='" + Constants.XSD_NS + "' .//s:schema" );

        for( int i = 0; i < schemas.length; i++ )
        {
          XmlCursor xmlCursor = schemas[i].newCursor();
          String xmlText = xmlCursor.getObject().xmlText( options );
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject.selectPath()

          schemas[i].documentProperties().setSourceName( wsdlUrl );

          result.put( wsdlUrl + "@" + ( i + 1 ), schemas[i] );
        }

        XmlObject[] wsdlImports = xmlObject.selectPath( "declare namespace s='" + Constants.WSDL11_NS
            + "' .//s:import/@location" );
        for( int i = 0; i < wsdlImports.length; i++ )
        {
          String location = ( ( SimpleValue )wsdlImports[i] ).getStringValue();
          if( location != null )
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject.selectPath()

            getSchemas( location, existing, loader, null );
          }
        }

        XmlObject[] wadl10Imports = xmlObject.selectPath( "declare namespace s='" + Constants.WADL10_NS
            + "' .//s:grammars/s:include/@href" );
        for( int i = 0; i < wadl10Imports.length; i++ )
        {
          String location = ( ( SimpleValue )wadl10Imports[i] ).getStringValue();
          if( location != null )
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject.selectPath()

            getSchemas( location, existing, loader, null );
          }
        }

        XmlObject[] wadlImports = xmlObject.selectPath( "declare namespace s='" + Constants.WADL11_NS
            + "' .//s:grammars/s:include/@href" );
        for( int i = 0; i < wadlImports.length; i++ )
        {
          String location = ( ( SimpleValue )wadlImports[i] ).getStringValue();
          if( location != null )
View Full Code Here

Examples of org.apache.xmlbeans.XmlObject.selectPath()

      for( int c = 0; c < schemas.length; c++ )
      {
        xmlObject = schemas[c];

        XmlObject[] schemaImports = xmlObject.selectPath( "declare namespace s='" + Constants.XSD_NS
            + "' .//s:import/@schemaLocation" );
        for( int i = 0; i < schemaImports.length; i++ )
        {
          String location = ( ( SimpleValue )schemaImports[i] ).getStringValue();
          Element elm = ( ( Attr )schemaImports[i].getDomNode() ).getOwnerElement();
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.chart.CTTitle.selectPath()

    // TODO Do properly
    CTTitle title = chart.getTitle();

    StringBuffer text = new StringBuffer();
    XmlObject[] t = title
      .selectPath("declare namespace a='"+XSSFDrawing.NAMESPACE_A+"' .//a:t");
    for (int m = 0; m < t.length; m++) {
      NodeList kids = t[m].getDomNode().getChildNodes();
      for (int n = 0; n < kids.getLength(); n++) {
        if (kids.item(n) instanceof Text) {
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTBackgroundFillStyleList.selectPath()

            int idx = (int)bgRef.getIdx() - 1001;
            XSLFTheme theme = getSheet().getTheme();
            CTBackgroundFillStyleList bgStyles =
                    theme.getXmlObject().getThemeElements().getFmtScheme().getBgFillStyleLst();

            XmlObject bgStyle = bgStyles.selectPath("*")[idx];
            fill = rShape.selectPaint(graphics, bgStyle, phClr, theme.getPackagePart());
        }

        return fill;
    }
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTColorScheme.selectPath()

    public XSSFColor getThemeColor(int idx) {
        CTColorScheme colorScheme = theme.getTheme().getThemeElements().getClrScheme();
        CTColor ctColor = null;
        int cnt = 0;
        for (XmlObject obj : colorScheme.selectPath("./*")) {
            if (obj instanceof org.openxmlformats.schemas.drawingml.x2006.main.CTColor) {
                if (cnt == idx) {
                    ctColor = (org.openxmlformats.schemas.drawingml.x2006.main.CTColor) obj;
                   
                    byte[] rgb = null;
View Full Code Here

Examples of org.openxmlformats.schemas.drawingml.x2006.main.CTColorScheme.selectPath()

    public XSSFColor getThemeColor(int idx) {
        CTColorScheme colorScheme = theme.getTheme().getThemeElements().getClrScheme();
        CTColor ctColor = null;
        int cnt = 0;
        for (XmlObject obj : colorScheme.selectPath("./*")) {
            if (obj instanceof org.openxmlformats.schemas.drawingml.x2006.main.CTColor) {
                if (cnt == idx) {
                    ctColor = (org.openxmlformats.schemas.drawingml.x2006.main.CTColor) obj;
                   
                    byte[] rgb = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.