View on
Aaron Brown > perfSONAR_PS-Services-PingER-0.09 > perfSONAR_PS::Datatypes::v2_0::nmtm::Message::Data::CommonTime::End



Annotate this POD

View/Report Bugs
Module Version: 2.0.0   Source  


 perfSONAR_PS::Datatypes::v2_0::nmtm::Message::Data::CommonTime::End  - A base class, implements  'end'  element from the perfSONAR_PS RelaxNG schema


   Object representation of the end element.
   Object fields are:
    Scalar:     inclusive, 
    Scalar:     value, 
    Scalar:     duration, 
    Scalar:     type, 
   The constructor accepts only single parameter, it could be a hashref to parameters hash  or DOM with  'end' element 


              use perfSONAR_PS::Datatypes::v2_0::nmtm::Message::Data::CommonTime::End;
          my $el =  perfSONAR_PS::Datatypes::v2_0::nmtm::Message::Data::CommonTime::End->new($DOM_Obj);


new( )

      creates   object, accepts DOM with  element tree or hashref to the list of
      keyd parameters
         inclusive   => undef, 
         value   => undef, 
         duration   => undef, 
         type   => undef, 

getDOM ($)

       accept parent DOM
       return end object DOM, generated from object contents 

querySQL ()

      depending on config  it will return some hash ref  to the initialized fields
    for example querySQL ()
    accepts one optional prameter - query hashref
    will return:
    { ip_name_src =>  '' },}


      merge with another end ( append + overwrite if exists )
      we can do it differently
      method #1:
         convert to dom both objects and then get resulted object from combined dom 
      method #2 default:
         through the introspection of the object


    if any of subelements has id then get a map of it in form of
    hashref to { element}{id} = index in array and store in the idmap field

buildrefIdMap ()

    if any of subelements has  metadataIdRef  then get a map of it in form of
    hashref to { element}{ metadataIdRef } = index in array and store in the idmap field


   shortcut to get DOM and convert into the XML string
   returns XML string  representation of the  end object

registerNamespaces ()

   will parse all subelements and register all namepspaces within the end namespace

fromDOM ($)

   accepts parent XML DOM   element   tree as parameter 
   returns end  object


   Maxim Grigoriev (FNAL)  2007-2008,
syntax highlighting: