public class Log extends Object implements Comparable<Log>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Log obj) |
boolean |
equals(Object obj) |
Collection<Attachment> |
getAttachments()
Get all the attachments associated with this log.
|
Date |
getCreatedDate() |
String |
getDescription() |
Long |
getId() |
String |
getLevel() |
Collection<String> |
getLogbookNames()
Get a set of all the logbook names.
|
Collection<Logbook> |
getLogbooks()
Get all the logbooks associated with this log.
|
Date |
getModifiedDate() |
String |
getOwner() |
Collection<Property> |
getProperties()
Get all the
Property s associated with this log. |
Collection<Property> |
getProperty(String propertyName)
return the
Property with name propertyName if it exists
on this log else return null. |
Collection<String> |
getPropertyNames()
Get a set of names for all the properties associated with this log.
|
Tag |
getTag(String tagName)
Returns a Tag with the name tagName if it exists on this log else returns
null.
|
Collection<String> |
getTagNames()
Get a set of Names of all the tags associated with this log.
|
Collection<Tag> |
getTags()
Get a Collection of all the Tags associated with this log.
|
int |
getVersion() |
int |
hashCode() |
String |
toString() |
public Long getId()
public String getOwner()
public String getDescription()
public String getLevel()
public Date getCreatedDate()
public Date getModifiedDate()
public int getVersion()
public Collection<Tag> getTags()
public Collection<String> getTagNames()
public Tag getTag(String tagName)
tagName
- Tag
with name tagName else null if no such tag attached
to this logpublic Collection<Logbook> getLogbooks()
Logbook
public Collection<String> getLogbookNames()
public Collection<Attachment> getAttachments()
public Collection<Property> getProperties()
Property
s associated with this log.public Collection<String> getPropertyNames()
public Collection<Property> getProperty(String propertyName)
Property
with name propertyName if it exists
on this log else return null.propertyName
- Property
with name propertyName else null if no such
property exists on this log.public int compareTo(Log obj) throws ClassCastException
compareTo
in interface Comparable<Log>
ClassCastException
Copyright © 2010-2014 Michigan State University. All Rights Reserved.