org.unisens
Interface CustomEntry

All Superinterfaces:
java.lang.Cloneable, Entry

public interface CustomEntry
extends Entry

CustomEntry can be used to describe a data file in a unisens dataset that is not specified in the unisens specification. Attributes can be used. These are stored and retreived from the unisens.xml file. THIS FEATURE IS STILL EXPERIMENTAL AND MAY CHANGE IN FUTURE.

Author:
Joerg Ottenbacher, Radi Nedkov, Malte Kirst

Method Summary
 java.lang.String getAttribute(java.lang.String attributeName)
          Gets the value of an attribute by its name
 java.util.HashMap<java.lang.String,java.lang.String> getAttributes()
          Gets all attributes as a HashMap
 void setAttribute(java.lang.String attributeName, java.lang.String attributeValue)
          Sets a new attriubte and its values
 
Methods inherited from interface org.unisens.Entry
addCustomAttribute, clone, close, createBinFileFormat, createCsvFileFormat, createCustomFileFormat, createXmlFileFormat, getComment, getContentClass, getCustomAttributes, getFileFormat, getId, getName, getSource, getSourceId, getUnisens, rename, setComment, setContentClass, setFileFormat, setName, setSource, setSourceId, setUnisens
 

Method Detail

getAttribute

java.lang.String getAttribute(java.lang.String attributeName)
Gets the value of an attribute by its name

Parameters:
attributeName - the name of the attribute
Returns:
the value of the attribute

setAttribute

void setAttribute(java.lang.String attributeName,
                  java.lang.String attributeValue)
Sets a new attriubte and its values

Parameters:
attributeName - the name of the attribute
attributeValue - the value of the attriute

getAttributes

java.util.HashMap<java.lang.String,java.lang.String> getAttributes()
Gets all attributes as a HashMap

Returns:
all attributes