FDO API Reference | Feature Data Objects |
#include <SchemaElement.h>
Inherits FdoIDisposable, and FdoXmlSaxHandler.
Inherited by FdoClassDefinition, FdoFeatureSchema, and FdoPropertyDefinition.
Inheritance diagram for FdoSchemaElement:
Definition at line 40 of file SchemaElement.h.
Public Member Functions | |
virtual FDO_API FdoBoolean | CanSetName () |
Indicates that this object allows its name to change. This function is defined so that this class can be a FdoNamedCollection element. | |
virtual void | CheckReferences (FdoSchemaMergeContext *pContext) |
FDO_API void | Delete () |
Marks the schema element for deletion by setting the element state to FdoSchemaElementState_Deleted. If the schema elements current state is FdoSchemaElementState_Added then the element is physically removed. If the current state is FdoSchemaElementState_Detached this method does nothing. | |
FDO_API FdoSchemaAttributeDictionary * | GetAttributes () |
Gets an FdoSchemaAttributeDictionary that contains the attributes associated with this FdoSchemaElement. | |
virtual FDO_API FdoString * | GetDescription () |
Gets the description of the schema object. | |
FDO_API FdoSchemaElementState | GetElementState () |
Returns the current state of the schema element. | |
virtual FDO_API FdoFeatureSchema * | GetFeatureSchema () |
Gets the FdoFeatureSchema this object is a part of. Returns null if this object has not been added to a feature schema. | |
virtual FDO_API FdoString * | GetName () |
Gets the name of the schema object. | |
virtual FDO_API FdoSchemaElement * | GetParent () |
Gets the parent of this FdoSchemaElement or null if this object has not been added to a parent object. | |
virtual FDO_API FdoStringP | GetQualifiedName () |
Gets the fully qualified name of this schema element. | |
virtual void | InitFromXml (FdoSchemaXmlContext *pContext, FdoXmlAttributeCollection *attrs) |
Initialize this property from its XML attributes. | |
virtual void | Set (FdoSchemaElement *pElement, FdoSchemaMergeContext *pContext) |
DOXYGEN-IGNORE | |
virtual FDO_API void | SetDescription (FdoString *value) |
Sets the description of the schema object. | |
virtual FDO_API void | SetName (FdoString *value) |
Sets the name of the schema object. | |
virtual FdoBoolean | XmlEndElement (FdoXmlSaxContext *context, FdoString *uri, FdoString *name, FdoString *qname) |
Handle the end of a sub-element. | |
virtual FdoXmlSaxHandler * | XmlStartElement (FdoXmlSaxContext *context, FdoString *uri, FdoString *name, FdoString *qname, FdoXmlAttributeCollection *atts) |
Handle the start of a sub-element. | |
Protected Member Functions | |
virtual void | _AcceptChanges () |
virtual void | _BeginChangeProcessing () |
virtual void | _EndChangeProcessing () |
virtual void | _RejectChanges () |
virtual void | _StartChanges () |
FdoFeatureSchema::RejectChanges() support. | |
virtual void | _writeXml (FdoSchemaXmlContext *pContext) |
Write this element to XML. | |
FdoSchemaElement (FdoString *name, FdoString *description) | |
Constructs an instance of an FdoSchemaElement using the specified arguments. | |
FdoSchemaElement () | |
Constructs a default instance of an FdoSchemaElement. | |
virtual bool | IsProperty (const FdoPropertyDefinition *property) |
Is this a property of this element? | |
virtual bool | IsSubClass () |
Does this element have a base class? | |
virtual void | PropertyRemoved (const FdoPropertyDefinition *property) |
Notification method called whenever a property of this element is removed. | |
void | SetElementState (FdoSchemaElementState value) |
virtual void | SetParent (FdoSchemaElement *value) |
void | VldName (FdoString *name) |
virtual | ~FdoSchemaElement () |
Protected Attributes | |
unsigned int | m_changeInfoState |
wchar_t * | m_descriptionCHANGED |
wchar_t * | m_nameCHANGED |
FdoSchemaElement * | m_parentCHANGED |
FdoXmlCharDataHandlerP | m_XmlContentHandler |
SAX Handler for reading simple sub-element contents. | |
FdoPtr< FdoSchemaXmlError > | m_XmlErrorHandler |
Static Protected Attributes | |
const unsigned int | CHANGEINFO_PRESENT = 0x00000001 |
States stored in the m_changeInfoState bitfield flag. | |
const unsigned int | CHANGEINFO_PROCESSED = 0x00000004 |
const unsigned int | CHANGEINFO_PROCESSING = 0x00000002 |
Friends | |
class | FdoDataPropertyDefinitionCollection |
class | FdoFeatureSchema |
class | FdoNetworkFeatureClass |
class | FdoNetworkLinkFeatureClass |
class | FdoNetworkNodeFeatureClass |
class | FdoPropertyDefinitionCollection |
class | FdoSchemaAttributeDictionary |
class | FdoSchemaCollection |
|
Constructs a default instance of an FdoSchemaElement.
|
|
Constructs an instance of an FdoSchemaElement using the specified arguments.
|
|
|
|
|
|
|
|
|
|
Indicates that this object allows its name to change. This function is defined so that this class can be a FdoNamedCollection element.
Definition at line 138 of file SchemaElement.h. References FDO_API, and FdoBoolean. |
|
|
Marks the schema element for deletion by setting the element state to FdoSchemaElementState_Deleted. If the schema elements current state is FdoSchemaElementState_Added then the element is physically removed. If the current state is FdoSchemaElementState_Detached this method does nothing.
|
|
Gets an FdoSchemaAttributeDictionary that contains the attributes associated with this FdoSchemaElement.
|
|
Gets the description of the schema object.
|
|
Returns the current state of the schema element.
|
|
Gets the FdoFeatureSchema this object is a part of. Returns null if this object has not been added to a feature schema.
|
|
Gets the name of the schema object.
|
|
Gets the parent of this FdoSchemaElement or null if this object has not been added to a parent object.
Referenced by FdoSchemaCollection< FdoDataPropertyDefinition >::SetItem(). |
|
Gets the fully qualified name of this schema element.
Reimplemented in FdoClassDefinition, and FdoPropertyDefinition. |
|
Initialize this property from its XML attributes.
Reimplemented in FdoClassDefinition, FdoNetworkFeatureClass, FdoPropertyDefinition, FdoTopoFeaturePropertyDefinition, and FdoTopoGeometryPropertyDefinition. |
|
Is this a property of this element?
Reimplemented in FdoClassDefinition. |
|
Does this element have a base class?
Reimplemented in FdoClassDefinition. |
|
Notification method called whenever a property of this element is removed.
Reimplemented in FdoClassDefinition. |
|
DOXYGEN-IGNORE
|
|
Sets the description of the schema object.
|
|
Sets the current state of the schema element. This is a package private method that can only be called from within the Schema package. Referenced by FdoSchemaCollection< FdoDataPropertyDefinition >::_StartChanges(). |
|
Sets the name of the schema object.
|
|
Sets the parent of this SchemaObject. Can only be called from within the Schema package. Reimplemented in FdoAssociationPropertyDefinition. Referenced by FdoSchemaCollection< FdoDataPropertyDefinition >::~FdoSchemaCollection(). |
|
Throws an exception if the given name is not a valid schema element name. |
|
Handle the end of a sub-element.
Reimplemented from FdoXmlSaxHandler. Reimplemented in FdoAssociationPropertyDefinition, FdoClassDefinition, FdoDataPropertyDefinition, FdoGeometricPropertyDefinition, FdoNetworkFeatureClass, FdoNetworkLinkFeatureClass, FdoNetworkNodeFeatureClass, FdoTopoFeaturePropertyDefinition, and FdoTopoGeometryPropertyDefinition. |
|
Handle the start of a sub-element.
Reimplemented from FdoXmlSaxHandler. Reimplemented in FdoAssociationPropertyDefinition, FdoClassDefinition, FdoDataPropertyDefinition, FdoFeatureSchema, FdoGeometricPropertyDefinition, FdoNetworkFeatureClass, FdoNetworkLinkFeatureClass, FdoNetworkNodeFeatureClass, FdoTopoFeaturePropertyDefinition, and FdoTopoGeometryPropertyDefinition. |
|
Definition at line 48 of file SchemaElement.h. |
|
Definition at line 44 of file SchemaElement.h. |
|
Definition at line 50 of file SchemaElement.h. |
|
Definition at line 51 of file SchemaElement.h. |
|
Definition at line 49 of file SchemaElement.h. |
|
Definition at line 47 of file SchemaElement.h. |
|
Definition at line 46 of file SchemaElement.h. |
|
Reimplemented in FdoClassDefinition, FdoDataPropertyDefinition, and FdoFeatureClass. Definition at line 45 of file SchemaElement.h. |
|
States stored in the m_changeInfoState bitfield flag.
Definition at line 256 of file SchemaElement.h. |
|
Definition at line 258 of file SchemaElement.h. |
|
Definition at line 257 of file SchemaElement.h. |
|
Definition at line 250 of file SchemaElement.h. |
|
Definition at line 253 of file SchemaElement.h. |
|
Definition at line 252 of file SchemaElement.h. |
|
Definition at line 251 of file SchemaElement.h. |
|
SAX Handler for reading simple sub-element contents.
Definition at line 261 of file SchemaElement.h. |
|
SAX Handler for reading error sub-elements Errors are generated by the XSL transformation that converts the Feature Schema XML from external to internal format before it is read. Definition at line 267 of file SchemaElement.h. |
Comments or suggestions? Send us feedback. |