public class DataTemplate extends Object implements Serializable
Constructor and Description |
---|
DataTemplate(Object data)
Create a data template object.
|
DataTemplate(Object parent,
Object data,
String fldName)
Create a data template object.
|
DataTemplate(Object data,
String[] order)
Create a data template object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns whether the given object is the same as this data template
|
Object |
getChild()
Returns a child object of the data template.
|
String |
getChildFldName()
Returns the field name for the child object of the data template.
|
Object |
getData()
Returns the actual data assoicated with the data template.
|
String |
getName()
Returns the name used to describe this data template.
|
String[] |
getOrderedFields()
Returns an array of the ordered fields.
|
Object |
getOrigData()
Returns the orginial data that was used to create this template.
|
String |
getString()
Returns the string used to describe the data template.
|
Object[] |
getSubOrder() |
void |
setData(Object d) |
void |
setOrderedFields(String[] oFields)
Sets the ordered fields array.
|
void |
setString(String str)
Sets the string to be used for describing the data template.
|
void |
setSubOrder(Object[] objs) |
String |
toString()
Returns a string representation of this object.
|
public DataTemplate(Object data, String[] order)
data
- the data to be encapsulatedorder
- the order to display the fieldspublic DataTemplate(Object data)
data
- the data to be encapsulatedpublic void setString(String str)
str
- the string to describle the data templatepublic String getString()
public void setData(Object d)
public Object getData()
public Object getOrigData()
public String getName()
public Object[] getSubOrder()
public void setSubOrder(Object[] objs)
public String[] getOrderedFields()
public void setOrderedFields(String[] oFields)
oFields
- An array containing the ordered fieldspublic boolean equals(Object obj)
public String toString()
public Object getChild()
the
- child objectpublic String getChildFldName()
field
- name for the child objectCopyright © 2003, 2023, Oracle and/or its affiliates.