Beispiel #1
0
 public BeanTag(String id, String name, String tag, String content) {
   super();
   this.id = (id == null) ? id : id.trim();
   this.name = (name == null) ? name : name.trim();
   this.tag = (tag == null) ? tag : tag.trim();
   this.content = (content == null) ? content : content.trim();
   setCount(new Integer(0));
   setOrder(new Integer(0));
   setRow(new Integer(0));
   setEnd(new Boolean(tag.startsWith("</")));
   setBeginEnd(new Boolean(tag.endsWith("/>")));
   if (!isEnd() && !isComment()) {
     this.listAttribut = parseAttribut(tag);
   }
 }
Beispiel #2
0
 public BeanTag createEnd() {
   BeanTag tag = new BeanTag(getName(), "</" + getName() + ">", "");
   tag.setLevel(getLevel());
   tag.setOrder(getOrder());
   return tag;
 }