Public Methods |
| PmtMetadata () |
| This is the default constructor. More...
|
| PmtMetadata (const PmtKeyType &mdKey, const SPmtString &_type, const SPmtString &trueType) |
| Constructor ... the class is abstract so these are protected. More...
|
| PmtMetadata (const PmtKeyType &mdKey, const SPmtString &_type, const SPmtString &trueType, const SPmtString &nillable) |
| Constructor ... the class is abstract so these are protected. More...
|
| PmtMetadata (const PmtMetadata &orig) |
| Copy Constructor ... don't copy parent. More...
|
| PmtMetadata (const PmtMetadata &orig, PmtCompositeMetadata *theParent) |
| Copy Constructor. More...
|
virtual | ~PmtMetadata () |
| Base class virtual destructor, does nothing. More...
|
PmtMetadata & | operator= (const PmtMetadata &orig) |
| This is an assignment operator. More...
|
const PmtKeyType | key (bool includeOccurrence=true) const |
| Returns the metadata's key. More...
|
const PmtKeyType | fullKey (bool includeOccurrence=true) const |
| Returns the metadata's fully qualified key. More...
|
const unsigned int & | occurrence () const |
const PmtKeyType & | type () const |
| Returns the metadata's value type as specified in the MDL file. More...
|
const SPmtString & | trueType () const |
| Returns the string representation of the C++ type (double, int, etc.). More...
|
virtual const SPmtString & | getNameSpace (void) const |
const PmtCompositeMetadata * | parent () const |
| Return a pointer to the parent composite metadata. More...
|
virtual PmtMetadataFactory * | getMdFactory () const |
virtual PmtAttrFactory * | getAttrFactory () const |
virtual PmtAttributePtr | getAttribute (PmtKeyType name, bool createIfNotExists=true) |
| Get the metadata attribute with the attribute name. More...
|
virtual void | setAttribute (PmtKeyType name, PmtAttributePtr pmtAttrPtr) |
| set the attribute value, if not already there in the attribute map. More...
|
virtual const PmtAttributeMap | getAttributes (bool createIfNotExists=true) |
| Get the metadata attributes. More...
|
virtual void | deleteAttribute (PmtKeyType name) |
| Delete the specified attribute. More...
|
virtual void | deleteAllAttributes (void) |
| Delete all attribute. More...
|
virtual PmtMetadataPtr | getMetadatum (const PmtKeyType &key, bool createMetadataIfNotExists=true) |
| Get a handle to a single metadatum instance with the given key. More...
|
virtual PmtMetadataIterator | getMetadata (const PmtKeyType &key, bool createMetadataIfNotExists=true, const PmtEntryTypeEnum entryToSearch=PMT_ALL_KEYS) |
| Get a PmtIterator instance referencing the requested metadata. More...
|
virtual PmtMetadataIterator | getMetadata (const PmtKeyList &keyList, bool createMetadataIfNotExists=true, const PmtEntryTypeEnum entryToSearch=PMT_ALL_KEYS) |
| Get a PmtIterator instance referencing the requested metadata. More...
|
virtual void | deleteMetadata (const PmtKeyType &key, const PmtEntryTypeEnum entryToSearch=PMT_ALL_KEYS) |
| Delete the metadata instances with the keys comprising the alias. More...
|
virtual void | deleteMetadata (const PmtKeyList &keyList, const PmtEntryTypeEnum entryToSearch=PMT_ALL_KEYS) |
| Delete the metadata instances with the keys comprising the list. More...
|
virtual EkString | getValueStr () const |
| This method returns the value of the metadata. More...
|
virtual void | setValueStr (const EkString &valStr) |
| This method sets the value of the metadata. More...
|
virtual PmtMetadata * | clone (void) const=0 |
| return: A "deep" copy of the object. More...
|
virtual PmtMetadataPtr | clone (PmtCompositeMetadata *parent) const=0 |
| This method clones a PMTMetadataPtr. More...
|
virtual ostream & | print (ostream &c=cout, bool bFullKey=false) const |
| DEPRECIATED METHOD - Write metadata variables to a stream. More...
|
virtual bool | isComposite () const |
| Returns true if the current class is a composite. More...
|
virtual void | accept (PmtMetadataVisitor *) |
| Support for visitor pattern. More...
|
virtual void | accept (PmtMdVisitorImpl *) |
virtual void | show (bool showObjectMemoryPointers=false, int level=0, bool showModelGroups=false) |
virtual bool | validate () const |
virtual PmtRootMetadata * | getRootMetadata (void) const |
void | setParent (const PmtCompositeMetadata *p) |
| This method sets the parent. More...
|
unsigned int & | occurrence () |
bool & | multipleOccurrence () |
virtual void | addFacet (const PmtKeyType &facetName, const vector< SPmtString > &value, bool fixed) |
const SPmtString & | getNillable () |
virtual bool | isChanged () |
virtual ostream & | printDerived (ostream &c) const=0 |
| DEPRECIATED - Write derived class values. More...
|
Static Public Methods |
PmtMetadataFactory * | getFactory (const SPmtString &nameSpace) |
PmtMetadataFactories & | getFactories (void) |
PmtAliases & | getAliases (void) |
| Get a handle to the currently available aliases. More...
|
PmtMetadataPtr | create (const SPmtString &nameSpace="") |
| This method creates a PmtMetadataPtr. More...
|
Protected Methods |
void | showAttr (int level) const |
void | setNillable (const SPmtString &nillable) |
Static Protected Methods |
void | getKeyList (const PmtKeyType &key, PmtKeyList &returnKeyList) |
| This method gets a list of keys. More...
|
Protected Attributes |
const PmtCompositeMetadata * | mParent |
PmtKeyType | mMetadataKey |
SPmtString | mType |
SPmtString | mTrueType |
SPmtString | mNillable |
bool | mIsChanged |
PmtAttributeMap | mAttributeMap |
PmtMetadata is the base metadata representation class. The common metadata functionality is contained in this class. A metadata object primarily contains two pieces of information: a key and a value.
The metadata key is an ASCII, case sensitive character string that provides unique identification of the metadata. When instantiating a metadata object, an application may choose a metadata key that is defined in the PmtDefaultDefinitions.xsd file int the DefaultDefintions directory.