NAME
Treex::PML::Schema::CDATA - implements cdata declaration.
INHERITANCE
This class inherits from Treex::PML::Schema::Decl.
METHODS
See the super-class for the complete list.
- $decl->is_atomic ()
-
Returns 1.
- $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 theformat-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->validate_object($object)
-
See
validate_object()
in Treex::PML::Schema. - $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
- $decl->get_content_decl ()
-
Returns undef.
SEE ALSO
Treex::PML::Schema::Decl, Treex::PML::Schema. Treex::PML::Schema::Choice, Treex::PML::Schema::Constant.
COPYRIGHT AND LICENSE
Copyright (C) 2008-2010 by Petr Pajas, 2010-2024 Jan Stepanek
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.
BUGS
None reported... yet.