com.amx.duet.tools.xml
Class Attribute

java.lang.Object
  extended bycom.amx.duet.tools.xml.Attribute

public class Attribute
extends java.lang.Object

The Attribute class was created to hold attributes for XML Tag objects, but it also has the capabilities to hold HTML attributes. This class can be further overwritten to handle the attribute of the user's choice.

Since:
AMXTools 1.0.0
Version:
1.0.0

Constructor Summary
Attribute(java.lang.String sName)
          Ensure that we will always have an attribute name
 
Method Summary
 void dump()
          Outputs all of the attribute data to the print stream
 java.lang.String getName()
          Retrieve the name of this attribute
 java.lang.String getNameSpace()
          Retrieve the name space for this attribute
 java.lang.String getPrefix()
          Retrieve the prefix for this attribute
 java.lang.String getType()
          Retrieve the type for the value of this attribute
 java.lang.String getValue()
          Retrieve the value stored in this attribute
 void setName(java.lang.String sName)
          Set the name for this attribute
 void setNameSpace(java.lang.String sNameSpace)
          Set the name space for this attribute
 void setPrefix(java.lang.String sPrefix)
          Set the prefix value for this attribute
 void setType(java.lang.String sType)
          Set the type for the value of this attribute
 void setValue(java.lang.String sValue)
          Set a value for this attribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(java.lang.String sName)
Ensure that we will always have an attribute name

Parameters:
sName - String
Method Detail

setName

public void setName(java.lang.String sName)
Set the name for this attribute

Parameters:
sName - String

setNameSpace

public void setNameSpace(java.lang.String sNameSpace)
Set the name space for this attribute

Parameters:
sNameSpace - String

setPrefix

public void setPrefix(java.lang.String sPrefix)
Set the prefix value for this attribute

Parameters:
sPrefix - String

setType

public void setType(java.lang.String sType)
Set the type for the value of this attribute

Parameters:
sType - String

setValue

public void setValue(java.lang.String sValue)
Set a value for this attribute

Parameters:
sValue - String

getName

public java.lang.String getName()
Retrieve the name of this attribute

Returns:
String

getNameSpace

public java.lang.String getNameSpace()
Retrieve the name space for this attribute

Returns:
String

getPrefix

public java.lang.String getPrefix()
Retrieve the prefix for this attribute

Returns:
String

getType

public java.lang.String getType()
Retrieve the type for the value of this attribute

Returns:
String

getValue

public java.lang.String getValue()
Retrieve the value stored in this attribute

Returns:
String

dump

public void dump()
Outputs all of the attribute data to the print stream



Copyright © 2008 AMX LLC. All Rights Reserved.