|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.fullspan.pwkeep.data.PwkBean
public class PwkBean
Base class for PWKeep data objects (such as PwkCategory and PwkItem).
| Constructor Summary | |
|---|---|
PwkBean(java.lang.String name)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getChildTextTrim(org.jdom.Element elem,
java.lang.String childName)
Wrapper to safely call getTextTrim on the named child
element. |
java.lang.String |
getName()
|
java.lang.String |
getTypeName(int count)
Returns a user-friendly type name for this object, suitable for use in user interface messages. |
static PwkBean |
newInstance(org.jdom.Element elem)
Returns a new PwkBean of the proper subclass type, based on the name of the XML element passed in. |
void |
setName(java.lang.String name)
|
org.jdom.Element |
toJdomElement()
Returns an XML element representing this object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PwkBean(java.lang.String name)
| Method Detail |
|---|
public static PwkBean newInstance(org.jdom.Element elem)
name of the XML element passed in.
elem - the XML element representing the data object
public static java.lang.String getChildTextTrim(org.jdom.Element elem,
java.lang.String childName)
getTextTrim on the named child
element. Returns null if the named child element does not exists.
elem - the parent elementchildName - the name of the child element whose text is to be
returned
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Objectpublic org.jdom.Element toJdomElement()
PwkBean, it will throw an
UnsupportedOperationException.
java.lang.UnsupportedOperationException - if called on the
PwkBean base classpublic java.lang.String getTypeName(int count)
count
parameter.
The text is retrieved from lines like the following in
messages.properties:
typename.display.singular.com.fullspan.pwkeep.data.PwkItem=item
typename.display.plural.com.fullspan.pwkeep.data.PwkItem=items
count - the number of objects - used to determine whether to
return a singular or plural name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||