add method
- Tag tag
Implementation
void add(Tag tag) {
TagType type = TagType.End;
if (size() > 0) {
type = value[0].getTagType();
}
if (type == TagType.End || type == tag.getTagType()) {
value.add(tag);
tag.updateParent(this);
}
}