Package org.w3c.tidy
Class AttVal
java.lang.Object
org.w3c.tidy.AttVal
- All Implemented Interfaces:
Cloneable
Attribute/Value linked list node.
- Version:
- $Revision: 899 $ ($Author: aditsu $)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckAttribute
(Lexer lexer, Node node) Check attribute name/value and report errors.protected Object
clone()
protected Attr
Return the org.w3c.dom.Attr adapter.getAsp()
Getter forasp
.Getter forattribute
.int
getDelim()
Getter fordelim
.getDict()
Getter fordict
.getNext()
Getter fornext
.getPhp()
Getter forphp
.getValue()
Getter forvalue
.boolean
Is this a boolean attribute.void
Setter forasp
.void
setAttribute
(String attribute) Setter forattribute
.void
setDelim
(int delim) Setter fordelim
.void
Setter fordict
.void
Setter fornext
.void
Setter forphp
.void
Setter forvalue
.
-
Field Details
-
next
next AttVal. -
dict
Attribute definition. -
asp
Asp node. -
php
Php node. -
delim
protected int delimDelimiter (" or '). -
attribute
Attribute name. -
value
Attribute value. -
adapter
DOM adapter.
-
-
Constructor Details
-
AttVal
public AttVal()Instantiates a new empty AttVal. -
AttVal
Instantiates a new AttVal.- Parameters:
next
- next linked AttValdict
- Attribute from dictionarydelim
- delimitator for attribute valueattribute
- attribute namevalue
- attribute value
-
AttVal
public AttVal(AttVal next, Attribute dict, Node asp, Node php, int delim, String attribute, String value) Instantiates a new AttVal.- Parameters:
next
- next linked AttValdict
- Attribute from dictionaryasp
- contained asp nodephp
- contained php nodedelim
- delimitator for attribute valueattribute
- attribute namevalue
- attribute value
-
-
Method Details
-
clone
-
isBoolAttribute
public boolean isBoolAttribute()Is this a boolean attribute.- Returns:
true
if this is a boolean attribute
-
checkAttribute
Check attribute name/value and report errors.- Parameters:
lexer
- Lexernode
- node which contains this attribute- Returns:
- Attribute
-
getAdapter
Return the org.w3c.dom.Attr adapter.- Returns:
- org.w3c.dom.Attr adapter
-
getAsp
Getter forasp
.- Returns:
- Returns the asp.
-
setAsp
Setter forasp
.- Parameters:
asp
- The asp to set.
-
getAttribute
Getter forattribute
.- Returns:
- Returns the attribute.
-
setAttribute
Setter forattribute
.- Parameters:
attribute
- The attribute to set.
-
getDelim
public int getDelim()Getter fordelim
.- Returns:
- Returns the delim.
-
setDelim
public void setDelim(int delim) Setter fordelim
.- Parameters:
delim
- The delim to set.
-
getDict
Getter fordict
.- Returns:
- Returns the dict.
-
setDict
Setter fordict
.- Parameters:
dict
- The dict to set.
-
getNext
Getter fornext
.- Returns:
- Returns the next.
-
setNext
Setter fornext
.- Parameters:
next
- The next to set.
-
getPhp
Getter forphp
.- Returns:
- Returns the php.
-
setPhp
Setter forphp
.- Parameters:
php
- The php to set.
-
getValue
Getter forvalue
.- Returns:
- Returns the value.
-
setValue
Setter forvalue
.- Parameters:
value
- The value to set.
-