FDO API Reference Feature Data Objects

FdoSchemaElement Class Reference

#include <SchemaElement.h>

Inherits FdoIDisposable, and FdoXmlSaxHandler.

Inherited by FdoClassDefinition, FdoFeatureSchema, and FdoPropertyDefinition.

Inheritance diagram for FdoSchemaElement:

Inheritance graph
[legend]
List of all members.

Detailed Description

FdoSchemaElement is an abstract class that acts as a base class for all classes in the Schema package.

Definition at line 39 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.
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 FdoSchemaAttributeDictionaryGetAttributes ()
 Gets an FdoSchemaAttributeDictionary that contains the attributes associated with this FdoSchemaElement.
virtual FDO_API FdoStringGetDescription ()
 Gets the description of the schema object.
FDO_API FdoSchemaElementState GetElementState ()
 Returns the current state of the schema element.
virtual FDO_API FdoFeatureSchemaGetFeatureSchema ()
 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 FdoStringGetName ()
 Gets the name of the schema object.
virtual FDO_API FdoSchemaElementGetParent ()
 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, FdoSchemaXmlContext *pContext)
 Update a schema element from the given element.
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 FdoXmlSaxHandlerXmlStartElement (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
FdoSchemaElementm_parentCHANGED
FdoXmlCharDataHandlerP m_XmlContentHandler
 SAX Handler for reading simple sub-element contents.
FdoPtr< FdoSchemaXmlError > m_XmlErrorHandler

Static Protected Attributes

static const unsigned int CHANGEINFO_PRESENT = 0x00000001
 States stored in the m_changeInfoState bitfield flag.
static const unsigned int CHANGEINFO_PROCESSED = 0x00000004
static const unsigned int CHANGEINFO_PROCESSING = 0x00000002

Friends

class FdoDataPropertyDefinitionCollection
class FdoFeatureSchema
class FdoNetworkFeatureClass
class FdoNetworkLinkFeatureClass
class FdoNetworkNodeFeatureClass
class FdoPropertyDefinitionCollection
class FdoSchemaAttributeDictionary
class FdoSchemaCollection

The documentation for this class was generated from the following file:
Comments or suggestions? Send us feedback.