Examples of CFNodeList


Examples of org.cfeclipse.cfml.parser.CFNodeList

   */
  public DocItem getItems(String filter) {
    DocItem scratch = new TagItem(1, 1, 1, "root");

    DocItem rootItem = getRootInput();
    CFNodeList nodes = rootItem.selectNodes(filter);

    Iterator i = nodes.iterator();
    while (i.hasNext()) {
      try {
        scratch.addChild((DocItem) i.next());
      } catch (Exception e) {
        System.err.println("Tree item set error ");
View Full Code Here

Examples of org.cfeclipse.cfml.parser.CFNodeList

      //CFDocument parsedDoc = parser.getParseResult();
     
      if(elparso != null){
        DocItem rootItem = elparso.getDocumentRoot();
        //Find the CFScript Items
        CFNodeList circuitscripts = rootItem.selectNodes("//cfscript");
        if(circuitscripts != null){
          Iterator scriptIter = circuitscripts.iterator();
         
          while(scriptIter.hasNext()){
            CfmlTagItem tag = (CfmlTagItem)scriptIter.next();
            //Get the full contents,
            String tagContents = circuitFile.substring(tag.getStartPosition(), tag.getEndPosition());
            cleanCircuits.append(tagContents);
           
          }
        }
       
        //Now add all the cfset items
        CFNodeList circuitsets = rootItem.selectNodes("//cfset");
        if(circuitsets != null){
          Iterator setIter = circuitsets.iterator();
         
          while(setIter.hasNext()){
            CfmlTagItem tag = (CfmlTagItem)setIter.next();
            //Get the full contents,
            String tagContents =  tag.getItemData();
View Full Code Here

Examples of org.cfeclipse.cfml.parser.CFNodeList

      try{
        CFDocument swtichDoc =  parser.parseDoc(switchContents);
       
        if(swtichDoc != null){
          DocItem rootItem = swtichDoc.getDocumentRoot();
          CFNodeList switchItems = rootItem.selectNodes("//cfcase");
          Iterator switchIter = switchItems.iterator();
         
          while(switchIter.hasNext()){
            CfmlTagItem tag = (CfmlTagItem)switchIter.next();
            if(tag != null){
              FBXFuseAction fuseaction = new FBXFuseAction(tag.getAttributeValue("value"));
View Full Code Here

Examples of org.cfeclipse.cfml.parser.CFNodeList

     
        return fuseactions;
    }
    public ArrayList getFuses(CfmlTagItem tag, FBXFuseAction fuseaction){
      ArrayList fuses = new ArrayList();
      CFNodeList nodes = tag.getChildNodes();
     
      Iterator nodeIter = nodes.iterator();
     
      while(nodeIter.hasNext()){
        Object childObj = nodeIter.next();
        if(childObj instanceof CfmlTagItem){
          CfmlTagItem childTag = (CfmlTagItem)childObj;
View Full Code Here

Examples of org.cfeclipse.cfml.parser.CFNodeList

      icfd = (ICFDocument)e.getDocumentProvider().getDocument(e.getEditorInput());
      cfd = icfd.getCFDocument();
    }
   
    org.cfeclipse.cfml.parser.docitems.DocItem docRoot = cfd.getDocumentRoot();
    CFNodeList nodes = docRoot.selectNodes("//cfcomponent");   
   
    // Check if this document is a CFC (contains a <cfcomponent> tag)
    if(nodes.size() > 0) {
      CfmlTagItem tag = (CfmlTagItem)nodes.get(0);
     
      // If the CFC has a tester argument, return that as the test case
      String t = tag.getAttributeValue("tester");
      if(t != null) {
        return t;
View Full Code Here

Examples of org.cfeclipse.cfml.parser.CFNodeList

  public String toString() {
    try {
      StringBuffer method = new StringBuffer(" ");
      method.append(functionTag.getAttributeValue("name"));
      method.append(" ( ");
      CFNodeList args = functionTag.selectNodes("//cfargument");
      Iterator j = args.iterator();
      while(j.hasNext()) {
        try {
          TagItem thisArg = (TagItem)j.next();
          method.append(thisArg.getAttributeValue("type") + " " + thisArg.getAttributeValue("name"));
          if (j.hasNext()) {
View Full Code Here

Examples of org.cfeclipse.cfml.parser.CFNodeList

    try {
      StringBuffer method = new StringBuffer("");
     
      method.append(functionTag.getAttributeValue("name"));
      method.append("(");
      CFNodeList args = functionTag.selectNodes("//argument");
      Iterator j = args.iterator();
      while(j.hasNext()) {
        try {
          TagItem thisArg = (TagItem)j.next();
          method.append(thisArg.getAttributeValue("type") + " " + thisArg.getAttributeValue("name"));
          if (j.hasNext()) {
View Full Code Here

Examples of org.cfeclipse.cfml.parser.CFNodeList

     
      insightXML += "\t\t\t<function creator=\"8\" name=\""+functionTag.getAttributeValue("name")+"\" returns=\""+functionTag.getAttributeValue("returnType")+"\">\n";
    insightXML += "\t\t\\t\t<help><![CDATA[\n";
    insightXML += "\t\t\t\t\t \n";
    insightXML += "\t\t\t\t]]></help>\n";
    CFNodeList args = functionTag.selectNodes("//argument");
    Iterator j = args.iterator();
    while(j.hasNext()) {
      try {
        TagItem thisArg = (TagItem)j.next();
        insightXML += "\t\t\t\t<parameter name=\""+thisArg.getAttributeValue("name") + "\" type=\"" + thisArg.getAttributeValue("type") + "\" required=\"" + thisArg.getAttributeValue("required") +"\">\n";
        insightXML += "\t\t\t\t\t<help><![CDATA[\n";
View Full Code Here

Examples of org.cfeclipse.cfml.parser.CFNodeList

    lineNumber = line;
    startPosition = startDocPos;
    endPosition = endDocPos;
    itemName = name;
   
    docNodes = new CFNodeList();
    docVariables = new ArrayList();
    parseMessages = new State("");
  }
View Full Code Here

Examples of org.cfeclipse.cfml.parser.CFNodeList

   * Constructor for a DocItem.
   * <strong>WARNING:</warning> This is only intended to be used by the CFScript parser.
   *
   */
  public DocItem() {
    docNodes = new CFNodeList();
    docVariables = new ArrayList();
    parseMessages = new State("");   
  }
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.