public class TagInfo extends Object
Class contains information about single HTML tag.
It also contains
rules to for tag balancing. For each tag, list of dependant tags may be
defined. In order to more easely describe those rules, several prefixed are
introduced.
For each tag, list of dependant tags may be specified using following prefixes:
<a href="#"><div>.... tag A must be closed before
DIV but copied again inside DIV.
Tag TR for instance (table row) may define the following dependancies:
!table,+tbody,^thead,^tfoot,#td,#th,tr,caption,colgroup
meaning the following:
| Constructor and Description |
|---|
TagInfo(String name,
String contentType,
int belongsTo,
boolean depricated,
boolean unique,
boolean ignorePermitted,
String dependancies) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependancy(String dependantTagName) |
int |
getBelongsTo() |
Set<String> |
getChildTags() |
String |
getContentType() |
Set<String> |
getCopyTags() |
String |
getFatalTag() |
Set<String> |
getHigherTags() |
Set<String> |
getMustCloseTags() |
String |
getName() |
Set<String> |
getPermittedTags() |
String |
getRequiredParent() |
boolean |
isDeprecated() |
boolean |
isIgnorePermitted() |
boolean |
isUnique() |
void |
setBelongsTo(int belongsTo) |
void |
setChildTags(Set<String> childTags) |
void |
setContentType(String contentType) |
void |
setCopyTags(Set<String> copyTags) |
void |
setDeprecated(boolean deprecated) |
void |
setFatalTag(String fatalTag) |
void |
setHigherTags(Set<String> higherTags) |
void |
setIgnorePermitted(boolean ignorePermitted) |
void |
setMustCloseTags(Set<String> mustCloseTags) |
void |
setName(String name) |
void |
setPermittedTags(Set<String> permittedTags) |
void |
setRequiredParent(String requiredParent) |
void |
setUnique(boolean unique) |
public void addDependancy(String dependantTagName)
public String getName()
public void setName(String name)
public String getContentType()
public void setContentType(String contentType)
public String getRequiredParent()
public void setRequiredParent(String requiredParent)
public int getBelongsTo()
public void setBelongsTo(int belongsTo)
public String getFatalTag()
public void setFatalTag(String fatalTag)
public boolean isDeprecated()
public void setDeprecated(boolean deprecated)
public boolean isUnique()
public void setUnique(boolean unique)
public boolean isIgnorePermitted()
public void setIgnorePermitted(boolean ignorePermitted)
Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.