@StandardClassDescriptor(author="Neo", date="12/11/10", currentRevision=2, reviewers="", lastModified="", lastModifiedBy="") public abstract class RBean extends RClass implements CreatableBean, com.google.gwt.user.client.rpc.IsSerializable
| Constructor and Description |
|---|
RBean()
Registration for each bean.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.xml.client.Document |
buildXML()
Creates XML from Bean.
|
void |
clearRFields()
Clear all class members.
|
<T> RField<T> |
createField(String name,
T value)
Creates new field instance.
|
<T> RField<T> |
createField(String name,
T value,
DataTypes dataTypes)
Creates new field instance.
|
<T> RField<T> |
createField(String name,
T value,
DataTypes dataTypes,
byte b)
Creates new field instance.
|
static RBean |
createRBean(String xml) |
static RBeanFactory |
getFactory() |
ArrayList<String> |
getFieldsNames()
Get's an array of all simple fields (RField>) names.
|
ArrayList<String> |
getFieldsTypes()
Get's an array of all simple fields (RField>) types.
|
ArrayList<String> |
getFieldsValues()
Get's an array of all simple fields (RField>) values.
|
Long |
getNwp07001() |
abstract CreatableBean |
newInstance()
Used by RBeanFactory.
|
void |
objToXml(com.google.gwt.xml.client.Document doc,
com.google.gwt.xml.client.Element root) |
<T> void |
setField(RField<T> field,
T value)
Use this setter instead default setValue(T value) instruction.
|
void |
setNwp07001(Long nwp07001) |
static void |
xmlToObj(RBean bean,
com.google.gwt.xml.client.NodeList nodeList) |
static void |
xmlToObj2(RBean bean,
com.google.gwt.xml.client.NodeList nodeList) |
getName, getSimpleName, setRclassNamepublic static RBeanFactory getFactory()
public static void xmlToObj(RBean bean, com.google.gwt.xml.client.NodeList nodeList)
public static void xmlToObj2(RBean bean, com.google.gwt.xml.client.NodeList nodeList)
public com.google.gwt.xml.client.Document buildXML()
public void clearRFields()
public <T> RField<T> createField(String name, T value) throws NullPointerException
T - name - value - NullPointerExceptionpublic <T> RField<T> createField(String name, T value, DataTypes dataTypes) throws NullPointerException
T - name - value - dataTypes - NullPointerExceptionpublic <T> RField<T> createField(String name, T value, DataTypes dataTypes, byte b) throws NullPointerException
T - name - value - dataTypes - b - NullPointerExceptionpublic ArrayList<String> getFieldsNames() throws NullPointerException
NullPointerException - if fields doesn't existpublic ArrayList<String> getFieldsTypes() throws NullPointerException
NullPointerException - if fields doesn't existpublic ArrayList<String> getFieldsValues() throws NullPointerException
NullPointerException - if fields doesn't existpublic Long getNwp07001()
public abstract CreatableBean newInstance()
newInstance in interface CreatableBeanpublic void objToXml(com.google.gwt.xml.client.Document doc,
com.google.gwt.xml.client.Element root)
public <T> void setField(RField<T> field, T value)
T - type of the field valuefield - field that contains T valuevalue - value to setpublic void setNwp07001(Long nwp07001)
Copyright © 2012–2014 RedSoft. All rights reserved.