Treex::PML::Schema::CDATA documentation

Table of contents


NAME

ToC

Treex::PML::Schema::CDATA - implements cdata declaration.

INHERITANCE

ToC

This class inherits from Treex::PML::Schema::Decl.

METHODS

ToC

See the super-class for the complete list.

$decl->get_decl_type ()

Returns the constant PML_CDATA_DECL.

$decl->get_decl_type_str ()

Returns the string 'cdata'.

$decl->get_format ()

Return identifier of the data format.

$decl->set_format (format)

Set format to a given format identifier.

$decl->check_string_format (string, format-id?)

If the format-id argument is specified, return 1 if the string confirms to the given format. If the format-id argument is omitted, return 1 if the string conforms to the format specified in the type declaration in the PML schema. Otherwise return 0.

$decl->supported_formats

Returns a list of formats for which the current implementation of validate_object provides a reasonable validator.

Currently all formats defined in the PML Schema specification revision 1.1.2 are supported, namely:

any, anyURI, base64Binary, boolean, byte, date, dateTime, decimal, double, duration, float, gDay, gMonth, gMonthDay, gYear, gYearMonth, hexBinary, ID, IDREF, IDREFS, int, integer, language, long, Name, NCName, negativeInteger, NMTOKEN, NMTOKENS, nonNegativeInteger, nonPositiveInteger, normalizedString, PMLREF, positiveInteger, short, string, time, token, unsignedByte, unsignedInt, unsignedLong, unsignedShort

SEE ALSO

ToC

Treex::PML::Schema::Decl, Treex::PML::Schema. Treex::PML::Schema::Choice, Treex::PML::Schema::Constant.

COPYRIGHT AND LICENSE

ToC

BUGS

ToC

None reported... yet.