public class AttributeImpl extends Object implements ExportUtils.HtmlExporter.Attribute
ExportUtils.HtmlExporter.Attribute
.Constructor and Description |
---|
AttributeImpl(String aName)
Creates a new
AttributeImpl instance. |
AttributeImpl(String aName,
String aValue)
Creates a new
AttributeImpl instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
public AttributeImpl(String aName)
AttributeImpl
instance.aName
- the name of this attribute, which will also be its value, cannot
be null
.public AttributeImpl(String aName, String aValue)
AttributeImpl
instance.aName
- the name of this attribute, cannot be null
;aValue
- the value of this attribute, cannot be null
.public ExportUtils.HtmlExporter.Attribute clone()
clone
in interface ExportUtils.HtmlExporter.Attribute
clone
in class Object
Object.clone()
public boolean equals(Object aObject)
equals
in class Object
Object.equals(java.lang.Object)
public String getName()
getName
in interface ExportUtils.HtmlExporter.Attribute
null
.public String getValue()
getValue
in interface ExportUtils.HtmlExporter.Attribute
null
.public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
public String toString(ExportUtils.HtmlExporter.MacroResolver aResolver)
ExportUtils.HtmlExporter.Attribute
toString
in interface ExportUtils.HtmlExporter.Attribute
aResolver
- the macro resolver to use for any found macros.null
.ExportUtils.HtmlExporter.Attribute.toString(nl.lxtreme.ols.util.ExportUtils.HtmlExporter.MacroResolver)
Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.