Package org.exoplatform.services.html

Examples of org.exoplatform.services.html.NodeConfig


      List<NodeImpl> openNodes = new ArrayList<NodeImpl>();

      while (tokens.hasNext())
      {
         NodeImpl temp = tokens.pop();
         NodeConfig config = temp.getConfig();
         if (config.end() == Tag.FORBIDDEN)
            continue;
         //      System.out.println("==== > "+new String(temp.getValue()));

         if (temp.getType() == TypeToken.TAG)
         {
View Full Code Here


      List<HTMLNode> children = node.getChildrenNode();
      for (HTMLNode ele : children)
         close((NodeImpl)ele);

      NodeConfig config = node.getConfig();
      if (config.children().length > 0 || config.children_types().length > 0)
      {
         Iterator<HTMLNode> iter = node.getChildren().iterator();
         while (iter.hasNext())
         {
            HTMLNode child = iter.next();
            if (HTML.isChild(node, child.getConfig()))
               continue;
            iter.remove();
            if (config.move() == MoveType.INSERT)
               insert(node, child);
            //        if(config.move() == MoveType.ADD) node.getParent().addChild(child);
         }
      }

      if (config.move() != MoveType.HEADER)
         return;

      HTMLNode header = null;
      if (ParserService.getRootNode().getChildren().size() > 0)
      {
View Full Code Here

   public NodeImpl(char[] value, Name name, int type)
   {
      super(value, name);
      this.type = type;
      children = new LinkedList<HTMLNode>();
      NodeConfig config = HTML.getConfig(name);
      if (config.end() != Tag.FORBIDDEN && type == TypeToken.TAG)
         isOpen = true;
   }
View Full Code Here

      NodeSetter setter = ParserService.getNodeSetter();
      NodeCloser closer = ParserService.getNodeCloser();

      while (tokens.hasNext())
      {
         NodeConfig config = temp.getConfig();

         if (config.hidden())
            setter.add(creator.getLast(), temp);

         else if (temp.getType() == TypeToken.CLOSE)
            closer.close(config);
View Full Code Here

      return getConfig(name);
   }

   static public NodeConfig getConfig(Name key)
   {
      NodeConfig config = mapConfig.get(key);
      if (config != null)
         return config;

      if (refConfig == null || refConfig.get() == null)
         loadNodeConfigs();
      NodeConfig[] configs = refConfig.get();
      int low = 0;
      int high = configs.length - 1;

      while (low <= high)
      {
         int mid = (low + high) >> 1;
         config = configs[mid];
         int cmp = config.name().compareTo(key);

         if (cmp < 0)
            low = mid + 1;
         else if (cmp > 0)
            high = mid - 1;
View Full Code Here

TOP

Related Classes of org.exoplatform.services.html.NodeConfig

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.