Package org.w3c.tidy
Class AttVal
- java.lang.Object
-
- org.w3c.tidy.AttVal
-
- All Implemented Interfaces:
java.lang.Cloneable
public class AttVal extends java.lang.Object implements java.lang.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 Modifier and Type Field Description protected org.w3c.dom.Attr
adapter
DOM adapter.protected Node
asp
Asp node.protected java.lang.String
attribute
Attribute name.protected int
delim
Delimiter (" or ').protected Attribute
dict
Attribute definition.protected AttVal
next
next AttVal.protected Node
php
Php node.protected java.lang.String
value
Attribute value.
-
Constructor Summary
Constructors Constructor Description AttVal()
Instantiates a new empty AttVal.AttVal(AttVal next, Attribute dict, int delim, java.lang.String attribute, java.lang.String value)
Instantiates a new AttVal.AttVal(AttVal next, Attribute dict, Node asp, Node php, int delim, java.lang.String attribute, java.lang.String value)
Instantiates a new AttVal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute
checkAttribute(Lexer lexer, Node node)
Check attribute name/value and report errors.protected java.lang.Object
clone()
protected org.w3c.dom.Attr
getAdapter()
Return the org.w3c.dom.Attr adapter.Node
getAsp()
Getter forasp
.java.lang.String
getAttribute()
Getter forattribute
.int
getDelim()
Getter fordelim
.Attribute
getDict()
Getter fordict
.AttVal
getNext()
Getter fornext
.Node
getPhp()
Getter forphp
.java.lang.String
getValue()
Getter forvalue
.boolean
isBoolAttribute()
Is this a boolean attribute.void
setAsp(Node asp)
Setter forasp
.void
setAttribute(java.lang.String attribute)
Setter forattribute
.void
setDelim(int delim)
Setter fordelim
.void
setDict(Attribute dict)
Setter fordict
.void
setNext(AttVal next)
Setter fornext
.void
setPhp(Node php)
Setter forphp
.void
setValue(java.lang.String value)
Setter forvalue
.
-
-
-
Field Detail
-
next
protected AttVal next
next AttVal.
-
dict
protected Attribute dict
Attribute definition.
-
asp
protected Node asp
Asp node.
-
php
protected Node php
Php node.
-
delim
protected int delim
Delimiter (" or ').
-
attribute
protected java.lang.String attribute
Attribute name.
-
value
protected java.lang.String value
Attribute value.
-
adapter
protected org.w3c.dom.Attr adapter
DOM adapter.
-
-
Constructor Detail
-
AttVal
public AttVal()
Instantiates a new empty AttVal.
-
AttVal
public AttVal(AttVal next, Attribute dict, int delim, java.lang.String attribute, java.lang.String value)
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, java.lang.String attribute, java.lang.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 Detail
-
clone
protected java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
- See Also:
Object.clone()
-
isBoolAttribute
public boolean isBoolAttribute()
Is this a boolean attribute.- Returns:
true
if this is a boolean attribute
-
checkAttribute
public Attribute checkAttribute(Lexer lexer, Node node)
Check attribute name/value and report errors.- Parameters:
lexer
- Lexernode
- node which contains this attribute- Returns:
- Attribute
-
getAdapter
protected org.w3c.dom.Attr getAdapter()
Return the org.w3c.dom.Attr adapter.- Returns:
- org.w3c.dom.Attr adapter
-
getAsp
public Node getAsp()
Getter forasp
.- Returns:
- Returns the asp.
-
setAsp
public void setAsp(Node asp)
Setter forasp
.- Parameters:
asp
- The asp to set.
-
getAttribute
public java.lang.String getAttribute()
Getter forattribute
.- Returns:
- Returns the attribute.
-
setAttribute
public void setAttribute(java.lang.String attribute)
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
public Attribute getDict()
Getter fordict
.- Returns:
- Returns the dict.
-
setDict
public void setDict(Attribute dict)
Setter fordict
.- Parameters:
dict
- The dict to set.
-
getNext
public AttVal getNext()
Getter fornext
.- Returns:
- Returns the next.
-
setNext
public void setNext(AttVal next)
Setter fornext
.- Parameters:
next
- The next to set.
-
getPhp
public Node getPhp()
Getter forphp
.- Returns:
- Returns the php.
-
setPhp
public void setPhp(Node php)
Setter forphp
.- Parameters:
php
- The php to set.
-
getValue
public java.lang.String getValue()
Getter forvalue
.- Returns:
- Returns the value.
-
setValue
public void setValue(java.lang.String value)
Setter forvalue
.- Parameters:
value
- The value to set.
-
-