|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.war.tools.IDDescription
public class IDDescription
Nested Class Summary | |
---|---|
static class |
IDDescription.SortBy
"SortBy" Enumeration |
Constructor Summary | |
---|---|
IDDescription(java.lang.String id,
java.lang.String desc)
Constructor |
|
IDDescription(java.lang.String id,
java.lang.String desc,
java.lang.String name)
Constructor |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns the object Description |
java.lang.String |
getID()
Returns the object ID |
java.lang.String |
getName()
Returns the object Name |
static IDDescription.SortBy |
GetSortBy(IDDescription.SortBy sortBy)
Returns the specified 'SortBy' Enumeration, or the default 'SortBy' if null. |
static IDDescription.SortBy |
GetSortBy(java.lang.String sortBy)
Returns the 'SortBy' Enumeration for the specified sortBy string value |
java.lang.String |
getSortByString(IDDescription.SortBy sortBy)
Returns the object Description/Name/ID (first item which isn't null) |
static java.util.List<IDDescription> |
SortList(java.util.List<IDDescription> idList,
IDDescription.SortBy sortBy)
Sorts the specified IDDescription list by the specified field |
static java.util.List<IDDescription> |
SortList(java.util.List<IDDescription> idList,
java.lang.String sortBy)
Sorts the specified IDDescription list by the specified field |
java.lang.String |
toString()
Returns the object String representation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IDDescription(java.lang.String id, java.lang.String desc)
id
- The object IDdesc
- The object descriptionpublic IDDescription(java.lang.String id, java.lang.String desc, java.lang.String name)
id
- The object IDdesc
- The object descriptionname
- The object nameMethod Detail |
---|
public static IDDescription.SortBy GetSortBy(java.lang.String sortBy)
sortBy
- Text representation of 'SortBy'
public static IDDescription.SortBy GetSortBy(IDDescription.SortBy sortBy)
sortBy
- 'SortBy' Enumeration (may be null)
public static java.util.List<IDDescription> SortList(java.util.List<IDDescription> idList, java.lang.String sortBy)
idList
- The IDDescription list to sort (in place)sortBy
- The name of the field by which to sort
public static java.util.List<IDDescription> SortList(java.util.List<IDDescription> idList, IDDescription.SortBy sortBy)
idList
- The IDDescription list to sort (in place)sortBy
- The name of the field by which to sort
public java.lang.String getID()
public java.lang.String getDescription()
public java.lang.String getName()
public java.lang.String getSortByString(IDDescription.SortBy sortBy)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |