Examples of lastOutputNodeAddLevel()


Examples of org.apache.uima.util.XMLSerializer.CharacterValidatingContentHandler.lastOutputNodeAddLevel()

    // start element
    outputStartElement(aContentHandler, infoset, inf.namespace, inf.elementTagName, inf.elementTagName, attrs);   
    CharacterValidatingContentHandler cc = (CharacterValidatingContentHandler) aContentHandler;
    cc.setLastOutputNode(infoset);
    cc.lastOutputNodeAddLevel();
    // write child elements
    try {
      for (int i = 0; i < inf.propertyInfo.length; i++) {
        PropertyXmlInfo propInf = inf.propertyInfo[i];
        writePropertyAsElement(propInf, inf.namespace, aContentHandler);
View Full Code Here

Examples of org.apache.uima.util.XMLSerializer.CharacterValidatingContentHandler.lastOutputNodeAddLevel()

        //                  <node>B</node>
 
      elementNode = findMatchingSubElement(aContentHandler, aPropInfo.xmlElementName);
      outputStartElement(aContentHandler, elementNode, aNamespace, aPropInfo.xmlElementName, aPropInfo.xmlElementName,
                EMPTY_ATTRIBUTES);
      cc.lastOutputNodeAddLevel();
    }
    // get class of property
    Class propClass = getAttributeClass(aPropInfo.propertyName);

    try {
View Full Code Here

Examples of org.apache.uima.util.XMLSerializer.CharacterValidatingContentHandler.lastOutputNodeAddLevel()

    Node arraySubElement = findMatchingSubElement(aContentHandler, "array");
   
    if (aPropClass == Object.class) {  // skip writting <array> unless the property class (of objects in the array) is "Object"
                                       // skipped e.g. in <fixedFlow> values, where aPropClass is String
      outputStartElement(aContentHandler, arraySubElement, aNamespace, "array", "array", EMPTY_ATTRIBUTES);
      cc.lastOutputNodeAddLevel();
    }

    // iterate through elements of the array (at this point we don't allow
    // nested arrays here
    int len = ((Object[]) aValue).length;
View Full Code Here

Examples of org.apache.uima.util.XMLSerializer.CharacterValidatingContentHandler.lastOutputNodeAddLevel()

    } else {
      // write start tag for attribute if desired
      outputStartElement(aContentHandler, matchingNode, aNamespace, aXmlElementName, aXmlElementName, EMPTY_ATTRIBUTES);       

      CharacterValidatingContentHandler cc = (CharacterValidatingContentHandler) aContentHandler;
      cc.lastOutputNodeAddLevel();
      try {
        // iterate over entries in the Map
        for (Map.Entry<String, Object> curEntry : theMap.entrySet()) {
          String key = curEntry.getKey();
 
View Full Code Here

Examples of org.apache.uima.util.XMLSerializer.CharacterValidatingContentHandler.lastOutputNodeAddLevel()

            for (int j = 0; j < arr.length; j++) {
              XMLizable elem = (XMLizable) arr[j];
              elem.toXML(aContentHandler);
            }
          } else {
            cc.lastOutputNodeAddLevel();
            try {
            ((XMLizable) val).toXML(aContentHandler);
            } finally {
              cc.lastOutputNodeClearLevel();             
            }
View Full Code Here

Examples of org.apache.uima.util.XMLSerializer.CharacterValidatingContentHandler.lastOutputNodeAddLevel()

    outputStartElement(aContentHandler, infoset, inf.namespace, inf.elementTagName, inf.elementTagName, attrs);
    CharacterValidatingContentHandler cc = maybeGetCharacterValidatingContentHandler(aContentHandler);
    // https://issues.apache.org/jira/browse/UIMA-3477
    if (cc != null) {
      cc.setLastOutputNode(infoset);
      cc.lastOutputNodeAddLevel();
    }
    // write child elements
    try {
      for (int i = 0; i < inf.propertyInfo.length; i++) {
        PropertyXmlInfo propInf = inf.propertyInfo[i];
View Full Code Here

Examples of org.apache.uima.util.XMLSerializer.CharacterValidatingContentHandler.lastOutputNodeAddLevel()

 
      elementNode = findMatchingSubElement(aContentHandler, aPropInfo.xmlElementName);
      outputStartElement(aContentHandler, elementNode, aNamespace, aPropInfo.xmlElementName, aPropInfo.xmlElementName,
                EMPTY_ATTRIBUTES);
      if (cc != null) {
        cc.lastOutputNodeAddLevel();
      }
    }
    // get class of property
    Class propClass = getAttributeClass(aPropInfo.propertyName);
View Full Code Here

Examples of org.apache.uima.util.XMLSerializer.CharacterValidatingContentHandler.lastOutputNodeAddLevel()

   
    if (aPropClass == Object.class) {  // skip writting <array> unless the property class (of objects in the array) is "Object"
                                       // skipped e.g. in <fixedFlow> values, where aPropClass is String
      outputStartElement(aContentHandler, arraySubElement, aNamespace, "array", "array", EMPTY_ATTRIBUTES);
      if (null != cc) {
        cc.lastOutputNodeAddLevel();
      }
    }

    // iterate through elements of the array (at this point we don't allow
    // nested arrays here
View Full Code Here

Examples of org.apache.uima.util.XMLSerializer.CharacterValidatingContentHandler.lastOutputNodeAddLevel()

      // write start tag for attribute if desired
      outputStartElement(aContentHandler, matchingNode, aNamespace, aXmlElementName, aXmlElementName, EMPTY_ATTRIBUTES);       

      CharacterValidatingContentHandler cc = maybeGetCharacterValidatingContentHandler(aContentHandler);
      if (null != cc) {
        cc.lastOutputNodeAddLevel();
      }
      try {
        // iterate over entries in the Map
        for (Map.Entry<String, Object> curEntry : theMap.entrySet()) {
          String key = curEntry.getKey();
View Full Code Here

Examples of org.apache.uima.util.XMLSerializer.CharacterValidatingContentHandler.lastOutputNodeAddLevel()

              XMLizable elem = (XMLizable) arr[j];
              elem.toXML(aContentHandler);
            }
          } else {
            if (null != cc) {
              cc.lastOutputNodeAddLevel();
            }
            try {
            ((XMLizable) val).toXML(aContentHandler);
            } finally {
              if (null != cc) {
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.