org.apache.ecs
Interface Attributes

All Known Implementing Classes:
ElementAttributes

public interface Attributes

This interface describes the attributes within an element. It is implemented by ElementAttributes.

Version:
$Id: Attributes.java,v 1.5 2003/04/27 09:44:39 rdonkin Exp $
Author:
Stephan Nagy, Jon S. Stevens

Field Summary
static java.lang.String NO_ATTRIBUTE_VALUE
          Does this element attribute value need a =""?
 
Method Summary
 Element addAttribute(java.lang.String name, int element)
          Add an attribute to the Element.
 Element addAttribute(java.lang.String name, java.lang.Integer element)
          Add an attribute to the Element.
 Element addAttribute(java.lang.String name, java.lang.Object element)
          Add an attribute to the Element.
 Element addAttribute(java.lang.String name, java.lang.String element)
          Add an attribute to the Element.
 char getAttributeEqualitySign()
          Get the equality sign for an attribute.
 Filter getAttributeFilter()
          Get the AttributeFilter that is in use.
 boolean getAttributeQuote()
          Do we surround attributes with qoutes?
 char getAttributeQuoteChar()
          Get the character used to quote attributes.
 boolean hasAttribute(java.lang.String name)
          Does the element have an attribute.
 Element removeAttribute(java.lang.String name)
          Remove an attribute from the element.
 Element setAttributeEqualitySign(char equality_sign)
          Set the equality sign for an attribute.
 Element setAttributeFilter(Filter attribute_filter)
          Set the AttributeFilter that should be used.
 Element setAttributeFilterState(boolean filter_attribute_state)
          Set the state of the attribute filter.
 Element setAttributeQuote(boolean attribute_quote)
          Set wether or not we surround the attributes with quotes.
 Element setAttributeQuoteChar(char quote_char)
          Set the character used to quote attributes.
 

Field Detail

NO_ATTRIBUTE_VALUE

public static final java.lang.String NO_ATTRIBUTE_VALUE
Does this element attribute value need a =""?
Method Detail

setAttributeFilterState

public Element setAttributeFilterState(boolean filter_attribute_state)
Set the state of the attribute filter.
Parameters:
filter_attribute_state - do we need to filter attributes?

setAttributeFilter

public Element setAttributeFilter(Filter attribute_filter)
Set the AttributeFilter that should be used.
Parameters:
attribute_filter - set the attribute filter to be used.

getAttributeFilter

public Filter getAttributeFilter()
Get the AttributeFilter that is in use.

addAttribute

public Element addAttribute(java.lang.String name,
                            java.lang.Object element)
Add an attribute to the Element.
Parameters:
name - name of the attribute
element - value of the attribute.

addAttribute

public Element addAttribute(java.lang.String name,
                            int element)
Add an attribute to the Element.
Parameters:
name - name of the attribute
element - value of the attribute.

addAttribute

public Element addAttribute(java.lang.String name,
                            java.lang.String element)
Add an attribute to the Element.
Parameters:
name - name of the attribute
element - value of the attribute.

addAttribute

public Element addAttribute(java.lang.String name,
                            java.lang.Integer element)
Add an attribute to the Element.
Parameters:
name - name of the attribute
element - value of the attribute.

removeAttribute

public Element removeAttribute(java.lang.String name)
Remove an attribute from the element.
Parameters:
name - remove the attribute of this name

hasAttribute

public boolean hasAttribute(java.lang.String name)
Does the element have an attribute.
Parameters:
name - of the attribute to ask the element for.

setAttributeQuoteChar

public Element setAttributeQuoteChar(char quote_char)
Set the character used to quote attributes.
Parameters:
quote_char - character used to quote attributes

getAttributeQuoteChar

public char getAttributeQuoteChar()
Get the character used to quote attributes.

setAttributeEqualitySign

public Element setAttributeEqualitySign(char equality_sign)
Set the equality sign for an attribute.
Parameters:
equality_sign - The equality sign used for attributes.

getAttributeEqualitySign

public char getAttributeEqualitySign()
Get the equality sign for an attribute.

getAttributeQuote

public boolean getAttributeQuote()
Do we surround attributes with qoutes?

setAttributeQuote

public Element setAttributeQuote(boolean attribute_quote)
Set wether or not we surround the attributes with quotes.


Copyright © 1999-2003 Apache Software Foundation. All Rights Reserved.