java.lang.Object | +--SimpleAttribute
A SimpleAttribute
is composed of a String
name (attribute name) and a String
type (attribute type).
Field Summary | |
String |
attributeName The name, represented as a string , of this attribute. |
String |
attributeType The type, represented as a string , of this attribute. |
Constructor Summary | |
SimpleAttribute() Creates a SimpleAttribute with attributeName = "" and attributeType = "". | |
SimpleAttribute(String name, String type) Creates a SimpleAttribute with attributeName = name and attributeType = type. |
Method Summary | |
String |
getName() Returns the attributeName of this SimpleAttribute . |
String |
getType() Returns the attributeType of this SimpleAttribute . |
void |
setName(String name) Set the attributeName of this SimpleAttribute with name . |
void |
setType(String type) Set the attributeType of this SimpleAttribute with type . |
String |
toString() Returns the string representation of this SimpleAttribute . |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait
|
Field Detail |
String attributeName
attributeName
is determined when parsing ontology with the value of attribute name
of the tag attribute.String attributeType
attributeType
is determined when parsing ontology with the value of attribute name
of the tag classref or typeref inside defattribute element.Constructor Detail |
public SimpleAttribute()
Creates a SimpleAttribute
with attributeName = "" and attributeType = "". Each field is initialized.
public SimpleAttribute(String name, String type)
Creates a SimpleAttribute
with attributeName = name and attributeType = type.
name
- the name of the attribute.type
- the type of the attribute.Method Detail |
public String getName()
SimpleAttribute
.public String getType()
SimpleAttribute
.public void setName(String name)
SimpleAttribute
with name
.name
- the String name to set.public void setType(String type)
SimpleAttribute
with type
.type
- the String type to set.public String toString()
SimpleAttribute
.