org.w3c.tidy
Class AttVal

java.lang.Object
  extended by 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: 779 $ ($Author: fgiust $)
Author:
Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina

Field Summary
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
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
 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 for asp.
 java.lang.String getAttribute()
          Getter for attribute.
 int getDelim()
          Getter for delim.
 Attribute getDict()
          Getter for dict.
 AttVal getNext()
          Getter for next.
 Node getPhp()
          Getter for php.
 java.lang.String getValue()
          Getter for value.
 boolean isBoolAttribute()
          Is this a boolean attribute.
 void setAsp(Node asp)
          Setter for asp.
 void setAttribute(java.lang.String attribute)
          Setter for attribute.
 void setDelim(int delim)
          Setter for delim.
 void setDict(Attribute dict)
          Setter for dict.
 void setNext(AttVal next)
          Setter for next.
 void setPhp(Node php)
          Setter for php.
 void setValue(java.lang.String value)
          Setter for value.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 AttVal
dict - Attribute from dictionary
delim - delimitator for attribute value
attribute - attribute name
value - 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 AttVal
dict - Attribute from dictionary
asp - contained asp node
php - contained php node
delim - delimitator for attribute value
attribute - attribute name
value - attribute value
Method Detail

clone

protected java.lang.Object clone()
Overrides:
clone in class java.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 - Lexer
node - 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 for asp.

Returns:
Returns the asp.

setAsp

public void setAsp(Node asp)
Setter for asp.

Parameters:
asp - The asp to set.

getAttribute

public java.lang.String getAttribute()
Getter for attribute.

Returns:
Returns the attribute.

setAttribute

public void setAttribute(java.lang.String attribute)
Setter for attribute.

Parameters:
attribute - The attribute to set.

getDelim

public int getDelim()
Getter for delim.

Returns:
Returns the delim.

setDelim

public void setDelim(int delim)
Setter for delim.

Parameters:
delim - The delim to set.

getDict

public Attribute getDict()
Getter for dict.

Returns:
Returns the dict.

setDict

public void setDict(Attribute dict)
Setter for dict.

Parameters:
dict - The dict to set.

getNext

public AttVal getNext()
Getter for next.

Returns:
Returns the next.

setNext

public void setNext(AttVal next)
Setter for next.

Parameters:
next - The next to set.

getPhp

public Node getPhp()
Getter for php.

Returns:
Returns the php.

setPhp

public void setPhp(Node php)
Setter for php.

Parameters:
php - The php to set.

getValue

public java.lang.String getValue()
Getter for value.

Returns:
Returns the value.

setValue

public void setValue(java.lang.String value)
Setter for value.

Parameters:
value - The value to set.


Copyright © 2000-2006 sourceforge. All Rights Reserved.