public class Set extends java.lang.Object implements java.io.Serializable, java.util.Comparator<Set>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FUNC_NAME_DATE |
static java.lang.String |
FUNC_NAME_ROOT |
static int |
FUNC_SID_DATE |
static int |
FUNC_SID_ROOT |
Constructor and Description |
---|
Set()
Default constructor, create an empty set.
|
Set(int sid,
java.lang.String name)
Convienence constructor to preset some values.
|
Modifier and Type | Method and Description |
---|---|
Set |
clone()
Clone this set.
|
int |
compare(Set set0,
Set set1) |
java.lang.String |
getDescription() |
java.util.Date |
getEditDate() |
java.lang.String |
getName() |
int |
getSid()
Fetch the PicMan unique Set id.
|
boolean |
isActive() |
boolean |
isFuncSet() |
boolean |
isMetaSet()
Is this a metaSet?
|
boolean |
isMicroSet()
Is this a microSet?
|
boolean |
isNanoSet()
Is this a nanoSet?
A pic in a nanoSet contains a boolean yes/no value.
|
void |
setActive(boolean active) |
void |
setDescription(java.lang.String description)
Set the user's desciption of this set.
|
void |
setEditDate(java.util.Date editDate) |
void |
setEditDateNow()
Set the time of this set's edit to be now.
|
void |
setMetaSet(boolean metaSet) |
void |
setMicroSet(boolean microSet) |
void |
setName(java.lang.String name) |
void |
setNanoSet(boolean nanoSet) |
void |
setSid(int sid) |
public static final java.lang.String FUNC_NAME_DATE
public static final int FUNC_SID_DATE
public static final java.lang.String FUNC_NAME_ROOT
public static final int FUNC_SID_ROOT
public Set()
public Set(int sid, java.lang.String name)
sid
- The set id to setname
- The name of this setpublic Set clone()
clone
in class java.lang.Object
public int compare(Set set0, Set set1)
compare
in interface java.util.Comparator<Set>
public int getSid()
public void setSid(int sid)
sid
- The set id to set.public void setName(java.lang.String name)
public java.lang.String getName()
public void setDescription(java.lang.String description)
description
- public java.lang.String getDescription()
public boolean isActive()
public void setActive(boolean active)
active
- Set whether this Set is active.public boolean isMetaSet()
public void setMetaSet(boolean metaSet)
metaSet
- The metaSet to set.public boolean isMicroSet()
public void setMicroSet(boolean microSet)
microSet
- the microSet to setpublic boolean isNanoSet()
public void setNanoSet(boolean nanoSet)
nanoSet
- the nanoSet to setpublic boolean isFuncSet()
public java.util.Date getEditDate()
public void setEditDate(java.util.Date editDate)
editDate
- the editDate to setpublic void setEditDateNow()