The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::SFDC::Constants - Data about SFDC Metadata Components.

VERSION

version 0.37

SYNOPSIS

Provides the methods required for translating on-disk file names and component names to forms that the metadata API recognises, and vice-versa.

  WWW::SFDC::Constants->new(
    session => $session
  );

OR

  WWW::SFDC::Constants->new(
    TYPES => $types
  );

ATTRIBUTES

TYPES

A hashref containing the result of the metadataObjects member of a describeMetadata result. If this is populated, Constants will not send any API calls, so setting this in the constructor with a cached version provides offline functionality. If you specify a session, this attribute is optional.

METHODS

needsMetaFile

hasFolders

getEnding

getDiskName

getName

When provided with the disk (folder) name for a component type or the node name of a subcomponent, provides the Metadata API name for that type.

getSubcomponentsXMLNames

Returns a list of XML node names for subcomponents.

AUTHOR

Alexander Brett <alexander.brett@sophos.com> http://alexander-brett.co.uk

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Sophos Limited https://www.sophos.com/.

This is free software, licensed under:

  The MIT (X11) License

The full text of the license can be found in the LICENSE file included with this distribution.