nl.lxtreme.ols.util.export
Class AttributeImpl

java.lang.Object
  extended by nl.lxtreme.ols.util.export.AttributeImpl
All Implemented Interfaces:
Cloneable, ExportUtils.HtmlExporter.Attribute

public class AttributeImpl
extends Object
implements ExportUtils.HtmlExporter.Attribute

Provides a default implementation of ExportUtils.HtmlExporter.Attribute.


Constructor Summary
AttributeImpl(String aName)
          Creates a new AttributeImpl instance.
AttributeImpl(String aName, String aValue)
          Creates a new AttributeImpl instance.
 
Method Summary
 ExportUtils.HtmlExporter.Attribute clone()
          Creates a deep copy of this attribute.
 boolean equals(Object aObject)
           
 String getName()
          Returns the name of this attribute.
 String getValue()
          Returns the value of this attribute.
 int hashCode()
           
 String toString()
           
 String toString(ExportUtils.HtmlExporter.MacroResolver aResolver)
          Returns the string representation of this HTML-attribute.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeImpl

public AttributeImpl(String aName)
Creates a new AttributeImpl instance.

Parameters:
aName - the name of this attribute, which will also be its value, cannot be null.

AttributeImpl

public AttributeImpl(String aName,
                     String aValue)
Creates a new AttributeImpl instance.

Parameters:
aName - the name of this attribute, cannot be null;
aValue - the value of this attribute, cannot be null.
Method Detail

clone

public ExportUtils.HtmlExporter.Attribute clone()
Creates a deep copy of this attribute.

Specified by:
clone in interface ExportUtils.HtmlExporter.Attribute
Overrides:
clone in class Object
See Also:
Object.clone()

equals

public boolean equals(Object aObject)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getName

public String getName()
Returns the name of this attribute.

Specified by:
getName in interface ExportUtils.HtmlExporter.Attribute
Returns:
the name of this attribute, never null.

getValue

public String getValue()
Returns the value of this attribute.

Specified by:
getValue in interface ExportUtils.HtmlExporter.Attribute
Returns:
the value of this attribute, never null.

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

toString

public String toString(ExportUtils.HtmlExporter.MacroResolver aResolver)
Description copied from interface: ExportUtils.HtmlExporter.Attribute
Returns the string representation of this HTML-attribute.

Specified by:
toString in interface ExportUtils.HtmlExporter.Attribute
Parameters:
aResolver - the macro resolver to use for any found macros.
Returns:
the string representation of this attribute, never null.
See Also:
ExportUtils.HtmlExporter.Attribute.toString(nl.lxtreme.ols.util.ExportUtils.HtmlExporter.MacroResolver)


Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.