Package org.apache.uima.tools.cvd

Examples of org.apache.uima.tools.cvd.IndexTreeNode


    }
    Object userObject = node.getUserObject();
    String label = null;
    Type type = null;
    if (userObject instanceof IndexTreeNode) {
      IndexTreeNode indexNode = (IndexTreeNode) userObject;
      label = indexNode.getName();
      type = indexNode.getType();
    } else if (userObject instanceof TypeTreeNode) {
      TypeTreeNode typeNode = (TypeTreeNode) userObject;
      label = typeNode.getLabel();
      type = typeNode.getType();
    } else {
View Full Code Here


      }
      Object userObject = node.getUserObject();
      String annotTitle = null;
      boolean isAnnotation = true;
      if (userObject instanceof IndexTreeNode) {
        IndexTreeNode iNode = (IndexTreeNode) userObject;
        if (!iNode.getName().equals(CAS.STD_ANNOTATION_INDEX)) {
          isAnnotation = false;
        }
        annotTitle = iNode.getType().getName();
      } else if (userObject instanceof TypeTreeNode) {
        TypeTreeNode tNode = (TypeTreeNode) userObject;
        if (!tNode.getLabel().equals(CAS.STD_ANNOTATION_INDEX)) {
          isAnnotation = false;
        }
View Full Code Here

      }
      Object userObject = node.getUserObject();
      String annotTitle = null;
      boolean isAnnotation = true;
      if (userObject instanceof IndexTreeNode) {
        IndexTreeNode iNode = (IndexTreeNode) userObject;
        if (!iNode.getName().equals(CAS.STD_ANNOTATION_INDEX)) {
          isAnnotation = false;
        }
        annotTitle = iNode.getType().getName();
      } else if (userObject instanceof TypeTreeNode) {
        TypeTreeNode tNode = (TypeTreeNode) userObject;
        if (!tNode.getLabel().equals(CAS.STD_ANNOTATION_INDEX)) {
          isAnnotation = false;
        }
View Full Code Here

TOP

Related Classes of org.apache.uima.tools.cvd.IndexTreeNode

Copyright © 2018 www.massapicom. 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.