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.CloneableAttribute/Value linked list node.- Version:
- $Revision$ ($Author$)
- 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.AttradapterDOM adapter.protected NodeaspAsp node.protected java.lang.StringattributeAttribute name.protected intdelimDelimiter (" or ').protected AttributedictAttribute definition.protected AttValnextnext AttVal.protected NodephpPhp node.protected java.lang.StringvalueAttribute 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 AttributecheckAttribute(Lexer lexer, Node node)Check attribute name/value and report errors.protected java.lang.Objectclone()protected org.w3c.dom.AttrgetAdapter()Return the org.w3c.dom.Attr adapter.NodegetAsp()Getter forasp.java.lang.StringgetAttribute()Getter forattribute.intgetDelim()Getter fordelim.AttributegetDict()Getter fordict.AttValgetNext()Getter fornext.NodegetPhp()Getter forphp.java.lang.StringgetValue()Getter forvalue.booleanisBoolAttribute()Is this a boolean attribute.voidsetAsp(Node asp)Setter forasp.voidsetAttribute(java.lang.String attribute)Setter forattribute.voidsetDelim(int delim)Setter fordelim.voidsetDict(Attribute dict)Setter fordict.voidsetNext(AttVal next)Setter fornext.voidsetPhp(Node php)Setter forphp.voidsetValue(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:
clonein classjava.lang.Object- See Also:
Object.clone()
-
isBoolAttribute
public boolean isBoolAttribute()
Is this a boolean attribute.- Returns:
trueif 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.
-
-