Examples of toChild()


Examples of org.apache.xmlbeans.XmlCursor.toChild()

  }
 
  private SubHandling getSubHandling(ExtensibleType actions)
  {
    XmlCursor cursor = actions.newCursor();
    cursor.toChild(PRES_RULES, "sub-handling");
    SubHandlingDocument.SubHandling subHandling = (SubHandlingDocument.SubHandling) cursor.getObject();
   
    if (subHandling.enumValue().equals(SubHandlingDocument.SubHandling.ALLOW))
      return SubHandling.ALLOW;
    else if (subHandling.enumValue().equals(SubHandlingDocument.SubHandling.CONFIRM))
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toChild()

  {
    try
    {
      XmlCursor cursor = conditions.newCursor();
      cursor.push();
      if (cursor.toChild(OMA_COMMON_POLICY, "external-list"))
      {
        ExternalList list = (ExternalList) cursor.getObject();
        for (int i = 0; i < list.getEntryArray().length; i++)
        {
          String anchor = list.getEntryArray(i).getAnc();
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toChild()

          if (match(anchor, subscriberAor))
            return true;
        }
      }
      cursor.pop();
      if (cursor.toChild(OMA_COMMON_POLICY, "anonymous-request"))
      {
        return subscriberAor.equals("sip:anonymous@anonymous.invalid");
        // TODO add better support to anonymous-request
      }
     
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toChild()

 
 
  private boolean matchOmaOtherIdentity(ConditionsType conditions)
  {
    XmlCursor cursor = conditions.newCursor();
    return cursor.toChild(OMA_COMMON_POLICY, "other-identity");
  }
 
  public void addListener(PolicyListener l)
  {
    if (!LazyList.contains(_listeners, l))
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toChild()

            for (int j = 0; j < ports.length; j++) {
                TPort port = ports[j];
                if (port.getName().trim().equals(portComponentName)) {
                    XmlCursor portCursor = port.newCursor();
                    try {
                        if (portCursor.toChild(ADDRESS_QNAME)) {
                            if (servletLocation == null) {
                                String original = portCursor.getAttributeText(LOCATION_QNAME);
                                URI originalURI = new URI(original);
                                servletLocation = originalURI.getPath();
                            }
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toChild()

                        XmlCursor source = cursor.newCursor();
                        cursor.push();
                        cursor.toEndToken();
                        cursor.toNextToken();
                        try {
                            if (source.toChild(configNamespace, element)) {
                                source.copyXmlContents(cursor);
                            }

                        } finally {
                            source.dispose();
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toChild()

                    cursor.push();
                    if (cursor.toChild(this.namespace, "security-realm-name")) {
                        XmlCursor other = cursor.newCursor();
                        try {
                            other.toParent();
                            if (other.toChild(SYSTEM_NAMESPACE, "gbean")) {
                                other.toPrevToken();
                            } else {
                                other.toEndToken();
                                other.toPrevToken();
                            }
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toChild()

                    cursor.toNextSibling(SchemaConversionUtils.J2EE_NAMESPACE, "resourceadapter");
                    moveable.toCursor(cursor);
                    cursor.toFirstChild();
                    cursor.beginElement("outbound-resourceadapter", SchemaConversionUtils.J2EE_NAMESPACE);
                    cursor.beginElement("connection-definition", SchemaConversionUtils.J2EE_NAMESPACE);
                    moveable.toChild(SchemaConversionUtils.J2EE_NAMESPACE, "managedconnectionfactory-class");
                    moveable.push();
                    //from moveable to cursor
                    moveable.moveXml(cursor);
                    while (moveable.toNextSibling(SchemaConversionUtils.J2EE_NAMESPACE, "config-property")) {
                        moveable.moveXml(cursor);
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toChild()

                TTypes[] types = definitions.getTypesArray();
                for (int i = 0; i < types.length; i++) {
                    TTypes type = types[i];
                    XmlCursor typeCursor = type.newCursor();
                    try {
                        if (typeCursor.toChild(SCHEMA_QNAME)) {
                            do {
                                SchemaDocument.Schema schema = (SchemaDocument.Schema) typeCursor.getObject();
                                rewriteSchema(schema, contextURI, key);
                            } while (typeCursor.toNextSibling(SCHEMA_QNAME));
                        }
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toChild()

        //Above code inserts gbean using xsi:type=dep:GBeanType.  We also need to account for the substitution group
        //by changing the qname:
        XmlCursor gbeanCursor = root.newCursor();
        try {
            if (!gbeanCursor.toChild(ServiceDocument.type.getDocumentElementName())) {
                throw new RuntimeException("Could not find service element");
            }
            gbeanCursor.setName(GBEAN_QNAME);
        } finally {
            gbeanCursor.dispose();
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.