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); } }
public void setLevel(String level) { this.level = level; // Initialise le rang setRow(new Integer(this.level.split("-").length)); }