|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--arlut.csd.ganymede.xmlfield
This class is a data holding structure that is intended to hold
object and field data for an XML object element for
xmlclient. This
class is also responsible for actually registering its data
on the server on demand.
| Field Summary | |
(package private) java.util.Vector |
addValues
|
(package private) static boolean |
debug
|
(package private) java.util.Vector |
delValues
|
(package private) FieldTemplate |
fieldDef
Definition record for this field type |
(package private) static java.text.DateFormat[] |
formatters
Formatter that we use for generating and parsing date fields |
(package private) xmlobject |
owner
The xmlobject that contains us. |
(package private) boolean |
registered
|
(package private) java.util.Vector |
setValues
|
(package private) java.lang.Object |
value
|
| Fields inherited from interface arlut.csd.ganymede.FieldType |
BOOLEAN, DATE, FIRSTFIELD, FLOAT, INVID, IP, LASTFIELD, NUMERIC, PASSWORD, PERMISSIONMATRIX, STRING |
| Constructor Summary | |
xmlfield(xmlobject owner,
XMLElement openElement)
|
|
| Method Summary | |
private java.util.Vector |
getExtantInvids(java.util.Vector values)
This private helper method takes a Vector of xInvid and xmlobject objects (in the embedded object case) and returns a Vector of Invid objects. |
private java.util.Vector |
getExtantObjects(java.util.Vector values)
This private helper method takes a Vector of xInvid and xmlobject objects (in the embedded object case) and returns a Vector of xmlobjects that exist on the server. |
java.lang.String |
getName()
Returns the non-XML-encoded name of this field. |
private java.util.Vector |
getNonRegisteredObjects(java.util.Vector values)
This private helper method takes a Vector of xInvid and xmlobject objects and returns a Vector of xInvids and xmlobjects that could not be resolved on the server. |
java.lang.Boolean |
parseBoolean(XMLItem item)
|
java.util.Date |
parseDate(XMLItem item)
|
java.lang.Double |
parseFloat(XMLItem item)
|
java.lang.String |
parseIP(XMLItem item)
|
java.lang.Integer |
parseNumeric(XMLItem item)
|
java.lang.String |
parseStringVecItem(XMLItem item)
|
private void |
processVectorElements(XMLElement openElement)
This method is called to process a set of values for the various kinds of vector fields. |
ReturnVal |
registerOnServer()
This method is responsible for propagating this field's data values to the server. |
private void |
skipToEndField(java.lang.String elementName)
This private helper method works through the XML file until the close element tag that terminates this field definition is found. |
java.lang.String |
toString()
Debug diagnostics |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
static final boolean debug
static java.text.DateFormat[] formatters
Formatter that we use for generating and parsing date fields
FieldTemplate fieldDef
Definition record for this field type
xmlobject owner
The xmlobject that contains us.
java.lang.Object value
java.util.Vector setValues
java.util.Vector delValues
java.util.Vector addValues
boolean registered
| Constructor Detail |
public xmlfield(xmlobject owner,
XMLElement openElement)
throws org.xml.sax.SAXException
| Method Detail |
private void processVectorElements(XMLElement openElement)
throws org.xml.sax.SAXException
This method is called to process a set of values for the various kinds of vector fields. This method consumes all XMLItems up to and including the field termination item.
private void skipToEndField(java.lang.String elementName)
throws org.xml.sax.SAXException
This private helper method works through the XML file until the close element tag that terminates this field definition is found.
public java.lang.Boolean parseBoolean(XMLItem item)
throws org.xml.sax.SAXException
public java.lang.Integer parseNumeric(XMLItem item)
throws org.xml.sax.SAXException
public java.util.Date parseDate(XMLItem item)
throws org.xml.sax.SAXException
public java.lang.String parseStringVecItem(XMLItem item)
throws org.xml.sax.SAXException
public java.lang.String parseIP(XMLItem item)
throws org.xml.sax.SAXException
public java.lang.Double parseFloat(XMLItem item)
throws org.xml.sax.SAXException
public ReturnVal registerOnServer()
This method is responsible for propagating this field's data values to the server.
Returns a ReturnVal
indicating the result of the server
operation. This result may be null on success, or it may
be an encoded success or failure message in the normal
arlut.csd.ganymede.ReturnVal way.
This method will throw an exception if the xmlobject that
contains this xmlfield has not established a remote
db_object reference to
the server through which the editing can be performed.
private java.util.Vector getExtantInvids(java.util.Vector values)
This private helper method takes a Vector of xInvid and xmlobject objects (in the embedded object case) and returns a Vector of Invid objects. If any xmlobjects in the input Vector did not map to pre-existing objects on the server, then no invid will be returned for those elements, and as a result, the returned vector may be smaller than the input.
private java.util.Vector getExtantObjects(java.util.Vector values)
This private helper method takes a Vector of xInvid and xmlobject objects (in the embedded object case) and returns a Vector of xmlobjects that exist on the server. Any xInvid objects in the input Vector, along with any xmlobject objects which do not correspond to pre-existing objects on the server will be omitted from the returned vector.
private java.util.Vector getNonRegisteredObjects(java.util.Vector values)
This private helper method takes a Vector of xInvid and xmlobject objects and returns a Vector of xInvids and xmlobjects that could not be resolved on the server.
public java.lang.String getName()
Returns the non-XML-encoded name of this field.
public java.lang.String toString()
Debug diagnostics
toString in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||