Table 85 summarizes the methods of the ContentType
class.
Member method | Description | Page |
---|---|---|
ContentType() | Creates a content-type object. | ContentType() |
equals() | Compares two content-type objects. | equals() |
from_int() | Generates a content-type object for a specified ordinal value. | from_int() |
toString() | Returns a literal representation of the current content-type object. | toString() |
value() | Returns an ordinal value for the current content type. | value() |
xmlObject() | Generates an XML object that represents the current content-type object. | xmlObject() |
Creates a content-type object.
Syntax
public ContentType(int contTypeOrdValue);
Parameters
Return values
A newly instantiated ContentType object.
Compares two content-type objects.
Syntax
public boolean equals(Object contentTypeObj);
Parameters
Return values
A boolean value that indicates whether the two content-type objects are equal.
Notes
The equals() method overrides the equals() method in the java.lang.Object class.
Generates a content-type object for the specified ordinal value.
Syntax
public static ContentMetaData from_int(int contTypeOrdValue);
Parameters
Return values
A ContentMetaData object that represents the content type of the specified ordinal value.
See also
Returns a literal representation of the current content-type object.
Syntax
public String toString();
Parameters
None.
Return values
A String object that contains the literal representation of the current content-type object.
Notes
The toString() method overrides the toString() method in the java.lang.Object class.
Returns an ordinal value for the current content type.
Syntax
public int value();
Parameters
None.
Return values
An integer ordinal value that represents the current content type.
See also
Generates an XML object that represents the current content-type object.
Syntax
public XMLObject xmlObject();
Parameters
None.
Return values
An com.crossworlds.ODK.XMLObject object that represents the current content-type object.