Table 68 summarizes the methods of the AgentMetaData
class.
Table 68. Member methods of the AgentMetaData class
Member method | Description | Page |
---|---|---|
AgentMetaData() | Creates an agent-metadata object. | AgentMetaData() |
toXml() | Copies the specified property into the current AgentProperty object. | toXml() |
Creates an agent-metadata object.
Syntax
public AgentMetaData(ODKAgentBase2 ODAobject); public AgentProperty(ODKAgentBase2 ODAobject, String version);
Parameters
Return values
A newly instantiated AgentMetaData object.
Notes
The AgentMetaData() method queries the ODAobject ODA for its supported content. This constructor provides the following forms for instantiating a new AgentMetaData object:
Both of these forms of the constructor use the ODAobject reference to query the ODA for its supported content. Using this information, the constructor initialize the supportedContent member variable.
Converts the ODA metadata into an XML format.
Syntax
public String toXml();
Parameters
None.
Return values
A String that contains the XML format for the current AgentMetaData object.