[YourSchema]::MemberAttribute

www.altova.com Imprimer cette rubrique Page précédente Un niveau supérieur Page suivante

Accueil >  Manuel de l'utilisateur et référence > Code Generator > Reference to Generated Classes (C++) >

[YourSchema]::MemberAttribute

When code is generated from an XML schema, a class such as this one is created for each member attribute of a type.

 

Methods

Name

Description

bool exists()

Returns true if the attribute exists.

int GetEnumerationValue()

Generated for enumeration types only. Returns one of the constants generated for the possible values, or "Invalid" if the value does not match any of the enumerated values in the schema.

altova::meta::Attribute info()

Returns an object for querying schema information (see altova::meta::Attribute).

void remove()

Removes the attribute from its parent element.

void SetEnumerationValue(int)

Generated for enumeration types only. Pass one of the constants generated for the possible values to this method to set the value.


© 2018 Altova GmbH