edu.whoi.ursa.argoDatabase.entity
Class FloatStatus

java.lang.Object
  extended by edu.whoi.ursa.argoDatabase.entity.FloatStatus

@Entity(name="FloatStatus")
public class FloatStatus
extends java.lang.Object


Nested Class Summary
static class FloatStatus.Comment
           
static class FloatStatus.FlagSet
           
static class FloatStatus.FlagType
           
static class FloatStatus.FloatStatusChild
           
static class FloatStatus.queryStatusFlags
           
 
Field Summary
private  java.util.SortedSet<FloatStatus.Comment> comments
           
private  java.util.SortedSet<FloatStatus.FlagSet> flagsSet
           
private  Identifiers.ArgoID id
           
 
Constructor Summary
FloatStatus()
           
FloatStatus(java.util.SortedSet<FloatStatus.Comment> comments, java.util.SortedSet<FloatStatus.FlagSet> flagsSet, java.lang.Integer whoi, java.lang.Integer wmo, java.lang.Integer aoml)
           
 
Method Summary
 FloatStatus.Comment addcomment(java.lang.Integer userId, java.lang.String comment)
           
 FloatStatus.FlagSet addFlagSet(java.lang.Integer userId, java.util.Calendar timeStamp, FloatStatus.FlagType.Flag flag, java.lang.String comment)
           
static Form addFormSection(Form form)
           
static org.w3c.dom.Element createForm(org.w3c.dom.Element element)
           
 boolean equals(java.lang.Object o)
           
 java.lang.Integer getAoml()
           
 java.util.SortedSet<FloatStatus.Comment> getComments()
           
 java.util.SortedSet<FloatStatus.FlagSet> getFlagsSet()
           
static FloatStatus getFloatStatus(java.lang.Integer aoml, java.lang.Integer whoi, java.lang.Integer wmo)
           
 Identifiers.ArgoID getId()
           
 java.lang.String getIdAsQueryString()
           
 java.lang.Integer getWhoi()
           
 java.lang.Integer getWmo()
           
 org.w3c.dom.Element printFlags(org.w3c.dom.Element element)
           
 void setComments(java.util.SortedSet<FloatStatus.Comment> comments)
           
 void setFlagsSet(java.util.SortedSet<FloatStatus.FlagSet> flagsSet)
           
 void setId(Identifiers.ArgoID id)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

comments

private java.util.SortedSet<FloatStatus.Comment> comments

flagsSet

private java.util.SortedSet<FloatStatus.FlagSet> flagsSet

id

private Identifiers.ArgoID id
Constructor Detail

FloatStatus

public FloatStatus()

FloatStatus

public FloatStatus(java.util.SortedSet<FloatStatus.Comment> comments,
                   java.util.SortedSet<FloatStatus.FlagSet> flagsSet,
                   java.lang.Integer whoi,
                   java.lang.Integer wmo,
                   java.lang.Integer aoml)
Parameters:
comments -
flagsSet -
whoi -
wmo -
Method Detail

addFormSection

public static Form addFormSection(Form form)
Parameters:
form -
Returns:

createForm

public static org.w3c.dom.Element createForm(org.w3c.dom.Element element)
Parameters:
element -
Returns:

getFloatStatus

public static FloatStatus getFloatStatus(java.lang.Integer aoml,
                                         java.lang.Integer whoi,
                                         java.lang.Integer wmo)
Parameters:
aoml -
whoi -
wmo -
Returns:

addcomment

public FloatStatus.Comment addcomment(java.lang.Integer userId,
                                      java.lang.String comment)
Parameters:
userId -
comment -
Returns:

addFlagSet

public FloatStatus.FlagSet addFlagSet(java.lang.Integer userId,
                                      java.util.Calendar timeStamp,
                                      FloatStatus.FlagType.Flag flag,
                                      java.lang.String comment)
Parameters:
userId -
timeStamp -
flag -
comment -
Returns:

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getAoml

public java.lang.Integer getAoml()
Returns:
the aoml

getComments

public java.util.SortedSet<FloatStatus.Comment> getComments()
Returns:
the comments

getFlagsSet

public java.util.SortedSet<FloatStatus.FlagSet> getFlagsSet()
Returns:
the flagsSet

getId

public Identifiers.ArgoID getId()
Returns:
the id

getIdAsQueryString

public java.lang.String getIdAsQueryString()
Returns:

getWhoi

public java.lang.Integer getWhoi()
Returns:
the whoi

getWmo

public java.lang.Integer getWmo()
Returns:
the wmo

printFlags

public org.w3c.dom.Element printFlags(org.w3c.dom.Element element)

setComments

public void setComments(java.util.SortedSet<FloatStatus.Comment> comments)
Parameters:
comments - the comments to set

setFlagsSet

public void setFlagsSet(java.util.SortedSet<FloatStatus.FlagSet> flagsSet)
Parameters:
flagsSet - the flagsSet to set

setId

public void setId(Identifiers.ArgoID id)
Parameters:
id - the id to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object