| org.cougaar.lib.vishnu.client.custom.DataHelper
All known Subclasses: org.cougaar.lib.vishnu.client.custom.XMLDataHelper, org.cougaar.lib.vishnu.client.custom.DirectDataHelper,
DataHelper | public interface DataHelper (Code) | | Defines interface for a data helper that can either produce XML or
Vishnu objects. The interface is neutral to either.
|
Method Summary | |
void | addListValue(Object parent, String fieldName, String type, Object toAppend) | void | createAvailableScheduleListField(Object object, String name, Asset asset) Translate TimeSpans(PlanElements) in the available schedule into
Vishnu intervals (see the link for more info). | void | createBooleanField(Object parent, String name, boolean val) | void | createDateField(Object parent, String name, Date date) | Object | createField(Object parent, String parentType, String name) Add a field on parent , but don't set the value. | void | createField(Object parent, String parentType, String name, String value) Generic field creation
Attach the field to either an XML Element or Vishnu Object. | void | createFloatField(Object parent, String name, float val) | void | createGeoloc(Object parent, String parentFieldName, NamedPosition loc) Adds a latlong object to the parent object, and adds the geoloc object to the parent. | void | createLatLon(Object parent, String parentFieldName, LatLonPoint loc) | Object | createObject(Object parent, String type) | void | createRoleScheduleListField(Object object, String name, Asset asset) Translate TimeSpans(PlanElements) in the role schedule into
Vishnu intervals (see the link for more info). | Object | startList(Object object, String name) |
createAvailableScheduleListField | void createAvailableScheduleListField(Object object, String name, Asset asset)(Code) | | Translate TimeSpans(PlanElements) in the available schedule into
Vishnu intervals (see the link for more info).
See Also: Vishnu interval definition |
createBooleanField | void createBooleanField(Object parent, String name, boolean val)(Code) | | shortcut to create a boolean field on parent
|
createDateField | void createDateField(Object parent, String name, Date date)(Code) | | shortcut to create a date field on parent
|
createField | Object createField(Object parent, String parentType, String name)(Code) | | Add a field on parent , but don't set the value.
The value is set by using createObject.
Parameters: parent - Element/SchObject object to add the field to Parameters: parentType - type of the parent SchObject/Element Parameters: name - field name See Also: DataHelper.createObject |
createField | void createField(Object parent, String parentType, String name, String value)(Code) | | Generic field creation
Attach the field to either an XML Element or Vishnu Object.
Given the parentType and the name of the field, may look up the other
field attributes.
Parameters: parent - Element/SchObject object to add the field to Parameters: parentType - type of the parent SchObject/Element Parameters: name - field name Parameters: value - field value |
createFloatField | void createFloatField(Object parent, String name, float val)(Code) | | shortcut to create a float field on parent
|
createGeoloc | void createGeoloc(Object parent, String parentFieldName, NamedPosition loc)(Code) | | Adds a latlong object to the parent object, and adds the geoloc object to the parent.
|
createObject | Object createObject(Object parent, String type)(Code) | | Create an object (DOM Element/Vishnu SchObject) of type type
Parameters: parent - - Element/Object to attach this new Element/Object to Parameters: type - - type of the new OBJECT Element/Object |
createRoleScheduleListField | void createRoleScheduleListField(Object object, String name, Asset asset)(Code) | | Translate TimeSpans(PlanElements) in the role schedule into
Vishnu intervals (see the link for more info).
See Also: Vishnu interval definition |
|
|