预订演示

请注意 : 本帮助页面不适用于最新版本的Enterprise Architect. 最新的帮助文档在这里.

前页 后页

SchemaProfile类

The interface representing the technology governing the naming and design rules on which the schema is built.

SchemaProfile Methods

Method

Description

See also

AddExportFormat(string description)

void
Notes: Use this function to add entries that are offered by the Schema Composer when the user clicks on the Generate button.
Parameters:

  • description: describes the export format provided by the Add-In

SetCapability(string name,boolean enabled)

void
Notes: Use this function to enable/disable capabilities.
Parameters:

  • name: name of the capability

  • enabled: True or False



Capabilities:
'allowCardinality' - allows/denies restrictions to cardinality
'allowRootElement' - allows/denies setting root element
'allowPropByRef' - allows/denies By Reference restriction
'allowRedefine' - allows/denies ability to redefine an element

SetProperty(string name,
string value)

void
Notes: Sets properties displayed in the Schema Composer.
Parameters:

  • name: property name

  • value: property value



Properties:
'Namespace' - Target namespace for XML schema
'Namespace Prefix' - Namespace prefix for XML schema
'Qualifier' - string qualifier that prepends schema type names