Package net.sf.regain.util.sharedtag

Examples of net.sf.regain.util.sharedtag.SharedTag


      if (! namespace.startsWith("/")) {
        // It's a start tag
        // System.out.println("Tag starts " + namespace + ":" + tagName);
       
        // Create the shared tag
        SharedTag tag = createSharedTag(namespace, tagName, params);
        SharedTagExecuter child = new SharedTagExecuter(tag);
        parent.addChildExecuter(child);
       
        // Check whether the start tag is closed immediately
        if (params.endsWith("/")) {
View Full Code Here


      throw new RegainException("Class for tag " + namespace + ":" + tagName
          + " not found: " + className, exc);
    }

    // Create the tag instance
    SharedTag tag;
    try {
      tag = (SharedTag) tagClass.newInstance();
    }
    catch (Exception exc) {
      throw new RegainException("Creating tag instance for tag " + namespace
          + ":" + tagName + " could not be created: " + className, exc);
    }
   
    // Set the params
    int pos = 0;
    while (mParamRegex.match(params, pos)) {
      String name = mParamRegex.getParen(1);
      String value = mParamRegex.getParen(2);
      tag.setParameter(name, value);
     
      pos = mParamRegex.getParenEnd(0);
    }
   
    return tag;
View Full Code Here

TOP

Related Classes of net.sf.regain.util.sharedtag.SharedTag

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.