Treex::PML::Schema::CDATA - implements cdata declaration.
This class inherits from Treex::PML::Schema::Decl.
See the super-class for the complete list.
Returns 1.
Returns the constant PML_CDATA_DECL.
Returns the string 'cdata'.
Return identifier of the data format.
Set format to a given format identifier.
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.
format-id
See validate_object() in Treex::PML::Schema.
validate_object()
Returns a list of formats for which the current implementation of validate_object provides a reasonable validator.
validate_object
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
Returns undef.
Treex::PML::Schema::Decl, Treex::PML::Schema. Treex::PML::Schema::Choice, Treex::PML::Schema::Constant.
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.
None reported... yet.
To install Treex::PML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Treex::PML
CPAN shell
perl -MCPAN -e shell install Treex::PML
For more information on module installation, please visit the detailed CPAN module installation guide.