dk.netarkivet.harvester.datamodel.extendedfield
Class ExtendedFieldValue

java.lang.Object
  extended by dk.netarkivet.harvester.datamodel.extendedfield.ExtendedFieldValue

public class ExtendedFieldValue
extends java.lang.Object

Class for holding a value of one ExtendedField.


Constructor Summary
ExtendedFieldValue()
          Default constructor initializing the contents to the empty string.
ExtendedFieldValue(java.lang.Long aExtendedFieldValueID, java.lang.Long aExtendedFieldID, java.lang.Long aInstanceID, java.lang.String aContent)
          Constructor initializing all instance members.
 
Method Summary
 boolean getBooleanValue()
           
 java.lang.String getContent()
           
 java.lang.Long getExtendedFieldID()
           
 java.lang.Long getExtendedFieldValueID()
           
 java.lang.Long getInstanceID()
           
 void setContent(java.lang.String content)
          Set the content.
 void setExtendedFieldID(java.lang.Long extendedFieldID)
          Set the ID of the ExtendedField.
 void setExtendedFieldValueID(java.lang.Long extendedFieldValueID)
          Set the ID of value of the ExtendedField.
 void setInstanceID(java.lang.Long instanceID)
          Set the instanceId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedFieldValue

public ExtendedFieldValue()
Default constructor initializing the contents to the empty string.


ExtendedFieldValue

public ExtendedFieldValue(java.lang.Long aExtendedFieldValueID,
                          java.lang.Long aExtendedFieldID,
                          java.lang.Long aInstanceID,
                          java.lang.String aContent)
Constructor initializing all instance members. Used when reading from persistent storage.

Parameters:
aExtendedFieldValueID - The ID of the value of the ExtendedField.
aExtendedFieldID - The ID of the ExtendedField.
aInstanceID - The instance id of the value
aContent - The contents of the value (the value itself) TODO argument validation
Method Detail

getExtendedFieldValueID

public java.lang.Long getExtendedFieldValueID()
Returns:
the ID of the value of the ExtendedField

setExtendedFieldValueID

public void setExtendedFieldValueID(java.lang.Long extendedFieldValueID)
Set the ID of value of the ExtendedField.

Parameters:
extendedFieldValueID - the ID of the value of the ExtendedField

getExtendedFieldID

public java.lang.Long getExtendedFieldID()
Returns:
the ID of the ExtendedField

setExtendedFieldID

public void setExtendedFieldID(java.lang.Long extendedFieldID)
Set the ID of the ExtendedField.

Parameters:
extendedFieldID - the ID of the ExtendedField

getContent

public java.lang.String getContent()
Returns:
the content of the value

setContent

public void setContent(java.lang.String content)
Set the content. Null arg is not accepted.

Parameters:
content - The content of the value

getInstanceID

public java.lang.Long getInstanceID()
Returns:
the instanceid of the value

setInstanceID

public void setInstanceID(java.lang.Long instanceID)
Set the instanceId. Null arg is not accepted.

Parameters:
instanceID - The instanceid

getBooleanValue

public boolean getBooleanValue()
Returns:
the boolean value of the contents