public class XMLDBAttribute
extends java.lang.Object
It is used as a data transfer object.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_TYPE_BOOLEAN
Boolean Type.
|
static java.lang.String |
ATTRIBUTE_TYPE_LIST
List Type.
|
static java.lang.String |
ATTRIBUTE_TYPE_STRING
String Type.
|
Constructor and Description |
---|
XMLDBAttribute(java.lang.String attributeName,
java.lang.String attributeType)
Construct an XMLDBAttribute instance with the given attribute name and
type.
|
XMLDBAttribute(java.lang.String attributeName,
java.lang.String attributeType,
java.lang.String attributeId)
Construct a XMLDBAttribute instance with the given attribute name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeId()
Return the attribute id.
|
java.lang.String |
getAttributeName()
Return the attribute name.
|
java.lang.String |
getAttributeType()
Return the attribute type.
|
java.util.List<java.lang.String> |
getAttributeValues()
Return the attribute value.
|
java.util.List<java.lang.String> |
getAttributeValuesPlain()
Get the attribute list values without checking the attribute's type.
|
java.lang.String |
getAttributeXMLStringFormat()
Create an XML string representation of XMLDBAttribute object.
|
void |
setAttributeId(java.lang.String attributeId)
Set the attribute Id.
|
void |
setAttributeName(java.lang.String attributName)
Set the name of the attribute.
|
void |
setAttributeType(java.lang.String attributeType)
Set the type of this attribute.
|
void |
setAttributeValue(java.util.List<java.lang.String> attributeValues)
Set the attribute list value only when the attribute type is list.
|
void |
setAttributeValuesPlain(java.util.List<java.lang.String> attributeValues)
Set the list values to the attribute regardless of the attribute type.
|
java.lang.String |
toString()
Get the String representation of this object information.
|
public static final java.lang.String ATTRIBUTE_TYPE_STRING
public static final java.lang.String ATTRIBUTE_TYPE_BOOLEAN
public static final java.lang.String ATTRIBUTE_TYPE_LIST
public XMLDBAttribute(java.lang.String attributeName, java.lang.String attributeType)
attributeName
- The name of the attribute to create.attributeType
- The type of the attribute to create.public XMLDBAttribute(java.lang.String attributeName, java.lang.String attributeType, java.lang.String attributeId)
attributeName
- The name for the given attribute.attributeType
- The type for the given attribute.attributeId
- The it for the given attribute.public java.lang.String getAttributeId()
setAttributeId(java.lang.String)
public java.lang.String getAttributeName()
setAttributeName(java.lang.String)
public java.lang.String getAttributeType()
setAttributeType(java.lang.String)
public java.util.List<java.lang.String> getAttributeValues()
setAttributeValue(java.util.List<java.lang.String>)
public java.util.List<java.lang.String> getAttributeValuesPlain()
setAttributeValuesPlain(java.util.List<java.lang.String>)
public void setAttributeId(java.lang.String attributeId)
attributeId
- the attribute id to be set.getAttributeId()
public void setAttributeName(java.lang.String attributName)
attributName
- The name of the attribute.getAttributeName()
public void setAttributeType(java.lang.String attributeType)
attributeType
- The type to set to this attribute.getAttributeType()
public void setAttributeValue(java.util.List<java.lang.String> attributeValues)
attributeValues
- The list of attribute values.getAttributeValues()
public void setAttributeValuesPlain(java.util.List<java.lang.String> attributeValues)
attributeValues
- The list values to be set to this attribute.getAttributeValuesPlain()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAttributeXMLStringFormat()