Package org.w3c.tidy
Class Attribute
java.lang.Object
org.w3c.tidy.Attribute
HTML attribute.
- Version:
- $Revision: 400 $ ($Author: fgiust $)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the checker for this attribute.getName()Returns the attribute name.shortReturns the html versions in which this attribute is supported.booleanIs this a literal (unmodifiable) attribute?booleanisNowrap()Don't wrap this attribute?voidsetLiteral(boolean isLiteral) Is this a literal (unmodifiable) attribute?voidsetNowrap(boolean isNowrap) Don't wrap this attribute?
-
Constructor Details
-
Attribute
Instantiates a new Attribute.- Parameters:
attributeName- attribute namehtmlVersions- versions in which this attribute is supportedcheck- AttrCheck instance
-
-
Method Details
-
setLiteral
public void setLiteral(boolean isLiteral) Is this a literal (unmodifiable) attribute?- Parameters:
isLiteral- booleantruefor a literal attribute
-
setNowrap
public void setNowrap(boolean isNowrap) Don't wrap this attribute?- Parameters:
isNowrap- booleantrue= don't wrap
-
getAttrchk
Returns the checker for this attribute.- Returns:
- instance of AttrCheck.
-
isLiteral
public boolean isLiteral()Is this a literal (unmodifiable) attribute?- Returns:
truefor a literal attribute
-
getName
Returns the attribute name.- Returns:
- attribute name.
-
isNowrap
public boolean isNowrap()Don't wrap this attribute?- Returns:
true= don't wrap
-
getVersions
public short getVersions()Returns the html versions in which this attribute is supported.- Returns:
- html versions for this attribute.
- See Also:
-