|
|||||||||
Home >> All >> org >> biomage >> [ Common overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
org.biomage.Common
Class NameValueType

java.lang.Objectorg.biomage.Common.NameValueType
- All Implemented Interfaces:
- org.biomage.Interface.HasPropertySets, java.io.Serializable
- public class NameValueType
- extends java.lang.Object
- implements java.io.Serializable, org.biomage.Interface.HasPropertySets
- extends java.lang.Object
A tuple designed to store data, keyed by a name and type.
Nested Class Summary |
Nested classes inherited from class org.biomage.Interface.HasPropertySets |
org.biomage.Interface.HasPropertySets.PropertySets_list |
Field Summary | |
(package private) java.lang.String |
name
The name of the key. |
private org.biomage.Interface.HasPropertySets.PropertySets_list |
propertySets
Allows nested specification of name/value pairs |
(package private) java.lang.String |
type
The type of the key. |
(package private) java.lang.String |
value
The value of the name. |
Constructor Summary | |
NameValueType()
Default constructor. |
|
NameValueType(org.xml.sax.Attributes atts)
Attribute constructor. |
Method Summary | |
void |
addToPropertySets(int position,
NameValueType nameValueType)
Method to add NameValueType at position to PropertySets_list |
void |
addToPropertySets(NameValueType nameValueType)
Method to add NameValueType to PropertySets_list |
NameValueType |
getFromPropertySets(int position)
Method to get NameValueType from PropertySets_list |
java.lang.String |
getName()
Get method for name |
org.biomage.Interface.HasPropertySets.PropertySets_list |
getPropertySets()
Get method for propertySets |
java.lang.String |
getType()
Get method for type |
java.lang.String |
getValue()
Get method for value |
void |
removeElementAtFromPropertySets(int position)
Method to remove by position from PropertySets_list |
void |
removeFromPropertySets(NameValueType nameValueType)
Method to remove first NameValueType from PropertySets_list |
void |
setName(java.lang.String name)
Set method for name |
void |
setPropertySets(org.biomage.Interface.HasPropertySets.PropertySets_list propertySets)
Set method for propertySets |
void |
setType(java.lang.String type)
Set method for type |
void |
setValue(java.lang.String value)
Set method for value |
void |
writeAssociations(java.io.Writer out)
writeAssociations |
void |
writeAttributes(java.io.Writer out)
writeAttributes |
void |
writeMAGEML(java.io.Writer out)
writeMAGEML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
name
java.lang.String name
- The name of the key.
value
java.lang.String value
- The value of the name.
type
java.lang.String type
- The type of the key.
propertySets
private org.biomage.Interface.HasPropertySets.PropertySets_list propertySets
- Allows nested specification of name/value pairs
Constructor Detail |
NameValueType
public NameValueType()
- Default constructor.
NameValueType
public NameValueType(org.xml.sax.Attributes atts)
- Attribute constructor.
Looks up the attributes in the parameter and casts them from strings
appropriately
Method Detail |
writeMAGEML
public void writeMAGEML(java.io.Writer out) throws java.io.IOException
- writeMAGEML
This method is responsible for assembling the attribute and association data into XML. It creates the object tag and then calls the writeAttributes and writeAssociation methods.
writeAttributes
public void writeAttributes(java.io.Writer out) throws java.io.IOException
- writeAttributes
This method is responsible for assembling the attribute data into XML. It calls the super method to write out all attributes of this class and it's ancestors.
writeAssociations
public void writeAssociations(java.io.Writer out) throws java.io.IOException
- writeAssociations
This method is responsible for assembling the association data into XML. It calls the super method to write out all associations of this class's ancestors.
setName
public void setName(java.lang.String name)
- Set method for name
getName
public java.lang.String getName()
- Get method for name
setValue
public void setValue(java.lang.String value)
- Set method for value
getValue
public java.lang.String getValue()
- Get method for value
setType
public void setType(java.lang.String type)
- Set method for type
getType
public java.lang.String getType()
- Get method for type
setPropertySets
public void setPropertySets(org.biomage.Interface.HasPropertySets.PropertySets_list propertySets)
- Set method for propertySets
- Specified by:
setPropertySets
in interfaceorg.biomage.Interface.HasPropertySets
getPropertySets
public org.biomage.Interface.HasPropertySets.PropertySets_list getPropertySets()
- Get method for propertySets
- Specified by:
getPropertySets
in interfaceorg.biomage.Interface.HasPropertySets
addToPropertySets
public void addToPropertySets(NameValueType nameValueType)
- Method to add NameValueType to PropertySets_list
- Specified by:
addToPropertySets
in interfaceorg.biomage.Interface.HasPropertySets
addToPropertySets
public void addToPropertySets(int position, NameValueType nameValueType)
- Method to add NameValueType at position to PropertySets_list
- Specified by:
addToPropertySets
in interfaceorg.biomage.Interface.HasPropertySets
getFromPropertySets
public NameValueType getFromPropertySets(int position)
- Method to get NameValueType from PropertySets_list
- Specified by:
getFromPropertySets
in interfaceorg.biomage.Interface.HasPropertySets
removeElementAtFromPropertySets
public void removeElementAtFromPropertySets(int position)
- Method to remove by position from PropertySets_list
- Specified by:
removeElementAtFromPropertySets
in interfaceorg.biomage.Interface.HasPropertySets
removeFromPropertySets
public void removeFromPropertySets(NameValueType nameValueType)
- Method to remove first NameValueType from PropertySets_list
- Specified by:
removeFromPropertySets
in interfaceorg.biomage.Interface.HasPropertySets
|
|||||||||
Home >> All >> org >> biomage >> [ Common overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |