Net::EPP::Frame::ObjectSpec3pm
Metadata about epp objects and extensions.
Usage
use Net::EPP::Frame;use strict;# create an EPP frame:my $check = Net::EPP::Frame::Command::Check->new;# get the spec:my @spec = Net::EPP::Frame::ObjectSpec->spec('domain');# create an object:my $domain = $check->addObject(@spec);# set the attributes:my $name = $check->createElement('domain:name');$name->addText('example.tld');# assemble the frame:$domain->appendChild($name);$check->getCommandNode->appendChild($domain);print $check->toString;
Overview
"Net::EPP::Frame::ObjectSpec" is a simple module designed to provide easy access to metadata for the objects and extensions defined in EPP and various extensions.
Methods
xmlns()
my $xmlns = Net::EPP::Frame::ObjectSpec->xmlns($type);
Returns a string containing the XML namespace URI of the thing identified by $type, or "undef" if $type is unknown.
See below for possible values of $type.
spec()
my @spec = Net::EPP::Frame::ObjectSpec->spec($type);
This function returns an array containing metadata for the given object type. If no metadata is registered then the function returns "undef".
The returned array contains three members:
@spec = ($type,$xmlns,$schemaLocation, # (deprecated));
$type is the same as the supplied argument, while $xmlns is the XML namespace URI for the given type. The third argument is suitable for inclusion in a "schemaLocation" attribute, but is now deprecated and will be "undef" for any value of $type other than "domain", "host" "contact", "secDNS" and "rgp".
THE $type ARGUMENT
The $type argument to xmlns() and spec() identifies the object or extension desired. Possible values are:
Object mappings
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
Extensions
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
•
|
|
Releases
8 releases since Debian 6.0 (Squeeze); the text changed 5 times.