|
NAMESOAP::WSDL::XSD::Typelib::Builtin - Built-in XML Schema datatypesDESCRIPTIONThe SOAP::WSDL::XSD::Typelib::Builtin hierarchy implements all builtin types from the XML schema specification.All XML schema derived types inherit from SOAP::WSDL::XSD::Typelib::Builtin::anyType. These basic type classes are most useful when used as element or simpleType base classes. Using SOAP::WSDL::XSD::Typelib::Builtin uses all of the builtin datatype classes. All builtin types feature common behaviour described below in "OVERLOADED OPERATORS" EXAMPLESmy $bool = SOAP::WSDL::XSD::Typelib::Builtin::bool->new({ value => 0} ); print $bool; # prints "true" # implements <simpleType name="MySimpleType"> # <list itemType="xsd:string" /> # </simpleType> package MySimpleType; use SOAP::WSDL::XSD::Typelib::Builtin; use SOAP::WSDL::XSD::Typelib::SimpleType; use base qw(SOAP::WSDL::XSD::Typelib::SimpleType SOAP::WSDL::XSD::Typelib::Builtin::list SOAP::WSDL::XSD::Typelib::Builtin::string ); 1; # somewhere else my $list = MySimpleType->new({ value => [ 'You', 'shall', 'overcome' ] }); print $list; # prints "You shall overcome" CLASS HIERARCHYThis is the inheritance graph for builtin types.Types with [] marker describe types derived via the item in [] in the XML Schema specs. Derivation is implemented via multiple inheritance with the derivation method as first item in the base class list. anyType - anySimpleType - duration - dateTime - date - time - gYearMonth - gYear - gMonthDay - gDay - gMonth - boolean - base64Binary - hexBinary - float - decimal - integer - nonPositiveInteger - negativeInteger - nonNegativeInteger - positiveInteger - unsignedLong - unsignedInt - unsignedShort - unsignedByte - long - int - short - byte - double - anyURI - NOTATION - string - normalizedString - language - Name - NCName - ID - IDREF - IDREFS [list] - ENTITY - token - NMTOKEN - NMTOKENS [list] OVERLOADED OPERATORSOverloading is implemented via Class::Std's trait mechanism.The following behaviours apply:
SubclassesSOAP::WSDL::XSD::Typelib::Builtin::anyTypeBase class for all typesSOAP::WSDL::XSD::Typelib::Builtin::anySimpleTypeBase class for all simple typesSOAP::WSDL::XSD::Typelib::Builtin::anyURIType representing URIsSOAP::WSDL::XSD::Typelib::Builtin::booleanRepresents boolean data.Serializes to "true" or "false". Everything true in perl and not "false" is deserialized as true. Returns true/false in boolean context. Returns 1 / 0 in numeric context. boolean objects have a special method for deleting their value, because calling "setl_value(undef)" results in the value being set to false. $obj->delete_value(); SOAP::WSDL::XSD::Typelib::Builtin::bytebyte integer objects.SOAP::WSDL::XSD::Typelib::Builtin::datedate values are automatically converted into XML date strings during setting:YYYY-MM-DD+zz:zz The time zone is set to the local time zone if not included. All input variants supported by Date::Parse are supported. You may even pass in dateTime strings - the time part will be ignored. Note that set_value is around 100 times slower when setting non-XML-time strings When setting dates before the beginning of the epoch (negative UNIX timestamp), you should use the XML date string format for setting dates. The behaviour of Date::Parse for dates before the epoch is system dependent. SOAP::WSDL::XSD::Typelib::Builtin::dateTimedateTime values are automatically converted into XML dateTime strings during setting:YYYY-MM-DDThh:mm:ss.nnnnnnn+zz:zz The fraction of seconds (nnnnnnn) part is optional. Fractions of seconds may be given with arbitrary precision The fraction of seconds part is excluded in converted values, as it would always be 0. All input variants supported by Date::Parse are supported. Note that set_value is around 100 times slower when setting non-XML-time strings SOAP::WSDL::XSD::Typelib::Builtin::decimaldecimal is the base of all non-float numbersSOAP::WSDL::XSD::Typelib::Builtin::doubleSOAP::WSDL::XSD::Typelib::Builtin::durationSOAP::WSDL::XSD::Typelib::Builtin::ENTITYSOAP::WSDL::XSD::Typelib::Builtin::floatSOAP::WSDL::XSD::Typelib::Builtin::gDaySOAP::WSDL::XSD::Typelib::Builtin::gMonthSOAP::WSDL::XSD::Typelib::Builtin::gMonthDaySOAP::WSDL::XSD::Typelib::Builtin::gYearSOAP::WSDL::XSD::Typelib::Builtin::gYearMonthSOAP::WSDL::XSD::Typelib::Builtin::hexBinarySOAP::WSDL::XSD::Typelib::Builtin::IDSOAP::WSDL::XSD::Typelib::Builtin::IDREFSOAP::WSDL::XSD::Typelib::Builtin::IDREFSList of SOAP::WSDL::XSD::Typelib::Builtin::IDREF objects.Derived by SOAP::WSDL::XSD::Typelib::Builtin::list. SOAP::WSDL::XSD::Typelib::Builtin::intSOAP::WSDL::XSD::Typelib::Builtin::integerSOAP::WSDL::XSD::Typelib::Builtin::languageSOAP::WSDL::XSD::Typelib::Builtin::listSOAP::WSDL::XSD::Typelib::Builtin::longSOAP::WSDL::XSD::Typelib::Builtin::NameSOAP::WSDL::XSD::Typelib::Builtin::NCNameSOAP::WSDL::XSD::Typelib::Builtin::negativeIntegerSOAP::WSDL::XSD::Typelib::Builtin::nonNegativeIntegerSOAP::WSDL::XSD::Typelib::Builtin::nonPositiveIntegerSOAP::WSDL::XSD::Typelib::Builtin::normalizedStringTab, newline and carriage return characters are replaced by whitespace in set_value.SOAP::WSDL::XSD::Typelib::Builtin::NOTATIONSOAP::WSDL::XSD::Typelib::Builtin::positiveIntegerSOAP::WSDL::XSD::Typelib::Builtin::QNameSOAP::WSDL::XSD::Typelib::Builtin::shortSOAP::WSDL::XSD::Typelib::Builtin::stringString values are XML-escaped on serialization.The following characters are escaped: <, >, & SOAP::WSDL::XSD::Typelib::Builtin::timetime values are automatically converted into XML time strings during setting:hh:mm:ss.nnnnnnn+zz:zz hh:mm:ss+zz:zz The time zone is set to the local time zone if not included. The optional nanoseconds part is not included in converted values, as it would always be 0. All input variants supported by Date::Parse are supported. You may even pass in dateTime strings - the date part will be ignored. Note that set_value is around 100 times slower when setting non-XML-time strings. SOAP::WSDL::XSD::Typelib::Builtin::tokenSOAP::WSDL::XSD::Typelib::Builtin::unsignedByteSOAP::WSDL::XSD::Typelib::Builtin::unsignedIntSOAP::WSDL::XSD::Typelib::Builtin::unsignedLongSOAP::WSDL::XSD::Typelib::Builtin::unsignedShortCAVEATS
BUGS AND LIMITATIONS
AUTHORReplace whitespace by @ in e-mail address.Martin Kutter E<gt>martin.kutter fen-net.deE<lt> LICENSE AND COPYRIGHTCopyright 2004-2007 Martin Kutter.This file is part of SOAP-WSDL. You may distribute/modify it under the same terms as perl itself
Visit the GSP FreeBSD Man Page Interface. |