SourceForge.net Logo
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PmtItemInterpreter Class Reference

#include <PmtItemInterpreter.h>

Inheritance diagram for PmtItemInterpreter:

[legend]
Collaboration diagram for PmtItemInterpreter:
[legend]
List of all members.

Public Types

enum  PmtRootElementInterpreter { PMT_ROOT_ELEMENT_INTERPRETER }
enum  PmtCompositeState { PMT_COMPOSITE_STATE_NEW, PMT_COMPOSITE_STATE_REUSE, PMT_COMPOSITE_STATE_INTERVENING_MODEL_GROUP }

Public Methods

 PmtItemInterpreter ()
virtual ~PmtItemInterpreter ()
virtual void interpret ()=0
PmtItemInterpreterPtr clone ()
const PmtSchemaElement & getCurPmtElement () const
const DOM_Element & getCurDomElement () const
virtual void setParserAndSaveState (PmtSchemaElement &savedElement, PmtSchemaParserPtr &parser, bool setParser=true)
virtual void restoreState (PmtSchemaElement &savedElement)

Static Public Methods

PmtItemInterpreterPtr getItemInterp (PmtSchemaParserPtr parser)
PmtItemInterpreterPtr getItemInterpInclude (PmtSchemaParserPtr parser, const SPmtString &type)
void setPmtSchemaParser (PmtSchemaParserPtr pmtSchemaParserPtr, PmtParserList *pmtIncludeSchemaParserList)
PmtParserList * getIncludePmtSchemaParserList ()
PmtSchemaParserPtr getIncludeSchemaParser ()
PmtSchemaParserPtr getSchemaParser ()
PmtSchemaElement & getPrevElement ()
PmtItemInterpreterFactoryType & getFactory ()
bool getIsLastElementIncluded ()
void setIsLastElementIncluded (bool isLastIncluded)
bool getIsIncludeInterpFound ()
void setIsIncludeInterpFound (bool isIncludeInterpFound)
bool getIsIncludeBeingParsed ()
void setIsIncludeBeingParsed (bool isIncludeBeingParsed)

Protected Methods

void interpretContents ()
bool addToFactory (const PmtMetadataPtr metadata, const PmtKeyType &factoryKey) const
void addToFactory (const PmtAttributePtr attr, const PmtKeyType &attrName)
void throwElementProcessingError (const char *filename, int line) const
PmtKeyType makeFullKeyFromInterpContext (const PmtKeyType &relativeKey)
void addMetadataItem (const PmtKeyType &key, const PmtKeyType &fullKey, SPmtString minOccursAttr="1", SPmtString maxOccursAttr="1", SPmtString nillable="false")
PmtMetadataPtr createPrimitiveMetadata (const SPmtString &name, const SPmtString &type, const SPmtString &nillable="false") const
PmtAttributePtr createPrimitiveAttribute (const SPmtString &name, const SPmtString &type) const
void addFacet (const PmtKeyType &facetName, const vector< SPmtString > &value, bool fixed)

Static Protected Methods

PmtItemInterpreterPtr getItemInterp (const DOM_Element &element)
void throwGetItemInterpError (const DOM_Element &element, const char *filename, int line)
void throwNullInterpError (const SPmtString interpName)
SPmtString toXsdDefaultQualifiedName (const SPmtString &name)

Static Protected Attributes

bool msIsIncludeBeingParsed = false
PmtSchemaParserPtr msIncludePmtParser
PmtSchemaParserPtr msPmtParser
PmtParserList * msIncludedFileParsers
EkGPtr< PmtItemInterpreterFactoryType > msFactory
PmtCompositeContextType msCompositeContext
PmtCompositeContextType msExtensionCompositeContext
PmtModelGroupContextType msModelGroupContext
PmtSchemaElement msPrevElement
PmtSchemaElement msPrevIncludeElement
PmtMetadataPtr msMdObjectGettingProcessed
PmtCompositeState msCompositeState
PmtMetadataPtr msMdToAdd
PmtAttributePtr msAttrToAdd
bool msVectorTypeMd
vector< SPmtString > msEnumValues
PmtSchemaElement msCurAttr
bool msInterpretAttr
PmtMetadataFactory * msMdFactory
PmtAttrFactory * msAttrFactory
bool msCalledFromComplexContent
bool msIsComplexTypeChildOfExtension
int msComplexCount
bool msIsLastElementIncluded
bool msIsIncludeInterpFound

Member Enumeration Documentation

enum PmtItemInterpreter::PmtCompositeState
 

Enumeration values:
PMT_COMPOSITE_STATE_NEW 
PMT_COMPOSITE_STATE_REUSE 
PMT_COMPOSITE_STATE_INTERVENING_MODEL_GROUP 

enum PmtItemInterpreter::PmtRootElementInterpreter
 

Enumeration values:
PMT_ROOT_ELEMENT_INTERPRETER 


Constructor & Destructor Documentation

PmtItemInterpreter::PmtItemInterpreter (    )  [inline]
 

virtual PmtItemInterpreter::~PmtItemInterpreter (    )  [inline, virtual]
 


Member Function Documentation

void PmtItemInterpreter::addFacet (  const PmtKeyType &    facetName,
const vector< SPmtString > &    value,
bool    fixed
)  [protected]
 

void PmtItemInterpreter::addMetadataItem (  const PmtKeyType &    key,
const PmtKeyType &    fullKey,
SPmtString    minOccursAttr = "1",
SPmtString    maxOccursAttr = "1",
SPmtString    nillable = "false"
)  [protected]
 

void PmtItemInterpreter::addToFactory (  const PmtAttributePtr    attr,
const PmtKeyType &    attrName
)  [protected]
 

bool PmtItemInterpreter::addToFactory (  const PmtMetadataPtr    metadata,
const PmtKeyType &    factoryKey
)  const [protected]
 

PmtItemInterpreterPtr PmtItemInterpreter::clone (  void    )  [inline]
 

PmtAttributePtr PmtItemInterpreter::createPrimitiveAttribute (  const SPmtString &    name,
const SPmtString &    type
)  const [protected]
 

PmtMetadataPtr PmtItemInterpreter::createPrimitiveMetadata (  const SPmtString &    name,
const SPmtString &    type,
const SPmtString &    nillable = "false"
)  const [protected]
 

const DOM_Element& PmtItemInterpreter::getCurDomElement (    )  const [inline]
 

const PmtSchemaElement& PmtItemInterpreter::getCurPmtElement (    )  const [inline]
 

PmtItemInterpreterFactoryType& PmtItemInterpreter::getFactory (  void    )  [inline, static]
 

PmtParserList* PmtItemInterpreter::getIncludePmtSchemaParserList (    )  [inline, static]
 

PmtSchemaParserPtr PmtItemInterpreter::getIncludeSchemaParser (    )  [inline, static]
 

bool PmtItemInterpreter::getIsIncludeBeingParsed (    )  [inline, static]
 

bool PmtItemInterpreter::getIsIncludeInterpFound (    )  [inline, static]
 

bool PmtItemInterpreter::getIsLastElementIncluded (    )  [inline, static]
 

PmtItemInterpreterPtr PmtItemInterpreter::getItemInterp (  const DOM_Element &    element )  [static, protected]
 

PmtItemInterpreterPtr PmtItemInterpreter::getItemInterp (  PmtSchemaParserPtr    parser )  [static]
 

PmtItemInterpreterPtr PmtItemInterpreter::getItemInterpInclude (  PmtSchemaParserPtr    parser,
const SPmtString &    type
)  [static]
 

PmtSchemaElement& PmtItemInterpreter::getPrevElement (    )  [inline, static]
 

PmtSchemaParserPtr PmtItemInterpreter::getSchemaParser (    )  [inline, static]
 

virtual void PmtItemInterpreter::interpret (    )  [pure virtual]
 

Implemented in PmtLdElementInterp.

void PmtItemInterpreter::interpretContents (    )  [protected]
 

PmtKeyType PmtItemInterpreter::makeFullKeyFromInterpContext (  const PmtKeyType &    relativeKey )  [protected]
 

void PmtItemInterpreter::restoreState (  PmtSchemaElement &    savedElement )  [virtual]
 

void PmtItemInterpreter::setIsIncludeBeingParsed (  bool    isIncludeBeingParsed )  [inline, static]
 

void PmtItemInterpreter::setIsIncludeInterpFound (  bool    isIncludeInterpFound )  [inline, static]
 

void PmtItemInterpreter::setIsLastElementIncluded (  bool    isLastIncluded )  [inline, static]
 

virtual void PmtItemInterpreter::setParserAndSaveState (  PmtSchemaElement &    savedElement,
PmtSchemaParserPtr &    parser,
bool    setParser = true
)  [virtual]
 

void PmtItemInterpreter::setPmtSchemaParser (  PmtSchemaParserPtr    pmtSchemaParserPtr,
PmtParserList *    pmtIncludeSchemaParserList
)  [inline, static]
 

void PmtItemInterpreter::throwElementProcessingError (  const char *    filename,
int    line
)  const [protected]
 

void PmtItemInterpreter::throwGetItemInterpError (  const DOM_Element &    element,
const char *    filename,
int    line
)  [static, protected]
 

void PmtItemInterpreter::throwNullInterpError (  const SPmtString    interpName )  [static, protected]
 

SPmtString PmtItemInterpreter::toXsdDefaultQualifiedName (  const SPmtString &    name )  [static, protected]
 


Member Data Documentation

PmtAttrFactory* PmtItemInterpreter::msAttrFactory [static, protected]
 

PmtAttributePtr PmtItemInterpreter::msAttrToAdd [static, protected]
 

bool PmtItemInterpreter::msCalledFromComplexContent [static, protected]
 

int PmtItemInterpreter::msComplexCount [static, protected]
 

PmtCompositeContextType PmtItemInterpreter::msCompositeContext [static, protected]
 

PmtCompositeState PmtItemInterpreter::msCompositeState [static, protected]
 

PmtSchemaElement PmtItemInterpreter::msCurAttr [static, protected]
 

vector<SPmtString> PmtItemInterpreter::msEnumValues [static, protected]
 

PmtCompositeContextType PmtItemInterpreter::msExtensionCompositeContext [static, protected]
 

EkGPtr< PmtItemInterpreterFactoryType > PmtItemInterpreter::msFactory [static, protected]
 

PmtParserList * PmtItemInterpreter::msIncludedFileParsers [static, protected]
 

PmtSchemaParserPtr PmtItemInterpreter::msIncludePmtParser [static, protected]
 

bool PmtItemInterpreter::msInterpretAttr [static, protected]
 

bool PmtItemInterpreter::msIsComplexTypeChildOfExtension [static, protected]
 

bool PmtItemInterpreter::msIsIncludeBeingParsed = false [static, protected]
 

bool PmtItemInterpreter::msIsIncludeInterpFound [static, protected]
 

bool PmtItemInterpreter::msIsLastElementIncluded [static, protected]
 

PmtMetadataFactory* PmtItemInterpreter::msMdFactory [static, protected]
 

PmtMetadataPtr PmtItemInterpreter::msMdObjectGettingProcessed [static, protected]
 

PmtMetadataPtr PmtItemInterpreter::msMdToAdd [static, protected]
 

PmtModelGroupContextType PmtItemInterpreter::msModelGroupContext [static, protected]
 

PmtSchemaParserPtr PmtItemInterpreter::msPmtParser [static, protected]
 

PmtSchemaElement PmtItemInterpreter::msPrevElement [static, protected]
 

PmtSchemaElement PmtItemInterpreter::msPrevIncludeElement [static, protected]
 

bool PmtItemInterpreter::msVectorTypeMd [static, protected]
 


The documentation for this class was generated from the following files:
Last Updated: March 12, 2003 (rlr)
Copyright © 2003 Eastman Kodak Company All Rights Reserved.