HtmlDocumentValidator
@Deprecated public class Tag extends Object implements DocumentElement
Constructor and Description |
---|
Tag(String tag)
Deprecated.
Create the tag element.
|
Modifier and Type | Method and Description |
---|---|
void |
addExpectedAttribute(String name,
String pattern)
Deprecated.
Add an expected attribute to this tag.
|
Tag |
addExpectedChild(DocumentElement e)
Deprecated.
Add an expected child to this tag.
|
void |
addIllegalAttribute(String name)
Deprecated.
Add the name of an attribute that is NOT expected for this tag.
|
Map<String,String> |
getExpectedAttributes()
Deprecated.
Get the map of expected attributes.
|
List<DocumentElement> |
getExpectedChildren()
Deprecated.
Get the list of expected children.
|
Set<String> |
getIllegalAttributes()
Deprecated.
Get the set of illegal attributes.
|
String |
getTag()
Deprecated.
Get the tag that this element represents.
|
String |
toString()
Deprecated.
Output a descriptive string.
|
public Tag(String tag)
tag
- The tag namepublic void addExpectedAttribute(String name, String pattern)
name
- The name of the attributepattern
- The pattern to matchpublic Tag addExpectedChild(DocumentElement e)
e
- The element to addpublic void addIllegalAttribute(String name)
name
- The name of the attributepublic Map<String,String> getExpectedAttributes()
public List<DocumentElement> getExpectedChildren()
public Set<String> getIllegalAttributes()
public String getTag()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.