package pt.linkare.ant; public class CSSTextBlock extends TextBlock { private String key=null; public boolean equals(Object other) { if(!(other instanceof CSSTextBlock)) return false; CSSTextBlock cssTextBlockOther=(CSSTextBlock)other; if(cssTextBlockOther.key==null || key==null) return false; return cssTextBlockOther.key.equals(key); } public String toString() { return getContent(); } @Override protected void initializeFromContent(String content) { if(content.indexOf("{")!=-1) key=content.substring(0,content.indexOf("{")).trim(); } }