ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation ER/Studio - Embarcadero Technologies Product Documentation

docs.embarcadero.com
from docs.embarcadero.com More from this publisher
24.12.2012 Views

USING ER/STUDIO > EXPORTING THE DATA MODEL 3 In the Property Value column of the properties pane, click the name of the include declaration and then type the URI of the schema. 4 To create more include declarations, repeat steps 1 to 3. TIP: You can later edit the name of the include declaration or delete it by right-clicking its name under the Includes node and then selecting Edit or Delete. Import Referenced Namespaces The import declaration identifies a namespace whose schema components are referenced by the schema containing the import declaration. TIP: Use the import declaration to declare any namespaces not previously identified in the Schema Attributes on page 2 of the XML Schema Generation Wizard. 1 In the Schema Body on page 4 of the XML Schema Generation Wizard, right-click Import and then select New. 2 Type a name for the import declaration and then click OK. The new import declaration appears highlighted within the Import folder of the Schema Body tree and its properties display in the properties pane below. 3 In the Property Value column of the properties pane, click the space next to the schemaLocation property and then type the URI of the schema document containing the imported namespace. 4 In the Property Value column of the properties pane, click the name of the namespace declaration and then type the URI of the schema containing the namespace to import. 5 To create more import declarations, repeat steps 1 to 3. TIP: You can edit the name of the import declaration or delete it by right-clicking its name under the Import node and then selecting Edit or Delete. Add Domains and Attributes to the Simple Types Section Domains can be included in the Simple Types or Complex Types sections of the Schema Body. NOTE: Dragging a domain that contains a subdomain into the Simple Types node does not include any of its subdomains in the schema. From the list of Available Objects, click a simple domain or attribute and then drag it to the Simple Types node in the Schema Body pane. The Simple Types node expands to show the newly added object. NOTE: If the target domain is for the simple type added, you can select the schema element, scroll through the properties, and change the default type and type prefix by clicking the Property Value list. The available namespaces are dependent on the namespaces declared on page 2 of the wizard. EMBARCADERO TECHNOLOGIES > ER/STUDIO® 8.0.3 USER GUIDE 264

USING ER/STUDIO > EXPORTING THE DATA MODEL Add Reference Values to a Domain Drag and drop the reference value from the list of Available Objects onto the object in the Schema Body. The reference values for the object appear as a property of the object in the Schema Body. Notes • For information on reordering objects in Schema Body nodes, see Change the Object Order in a Schema Body Section • For information on changing the property values of objects in Schema Body nodes, see Change the Property Values of Schema Objects. • To preview the schema, click Preview or for more information, see Preview the Schema. Add Domains, Attributes, and Entity Objects to the Elements Section From the list of Available Objects, click a domain, attribute or entity object and then drag it to the Elements node in the Schema Body pane. The Elements node expands to show the newly added objects. Notes • You cannot drag reference values onto domains in the Elements node; instead, use the Simple Types node. • You can drag a simple entity or a complex entity, with all their attributes, to the Elements node and then drag other attributes to its choice, sequence, or all attribute container. • To convert an attribute of an element to an element, drag the attribute out of the complexType container. • To convert an element to an attribute of another element, drag the element into the complexType node. • An element defined in the elements node may have a complex type underneath it. You can insert the complex type under the element and insert composites under that. • If you drag an attribute to the complex type node under an element, it is included within the xs:attribute container below the composite. • If you drag an attribute to a composite node, it is included within the xs:element container below the composite. Add Domains, Attributes and Entities to the Groups Section From the list of Available Objects, click a domain, attribute or entity and then drag it to the Groups node in the Schema Body pane. The Groups node expands to show the newly added object. Notes • Use the Groups node to define groups that another part of the schema, such as an element can reference. • A group may have a composite underneath it just like an element or complex type. EMBARCADERO TECHNOLOGIES > ER/STUDIO® 8.0.3 USER GUIDE 265

USING <strong>ER</strong>/STUDIO > EXPORTING THE DATA MODEL<br />

Add Reference Values to a Domain<br />

Drag and drop the reference value from the list of Available Objects onto the object in the Schema Body.<br />

The reference values for the object appear as a property of the object in the Schema Body.<br />

Notes<br />

• For information on reordering objects in Schema Body nodes, see Change the Object Order in a Schema<br />

Body Section<br />

• For information on changing the property values of objects in Schema Body nodes, see Change the Property<br />

Values of Schema Objects.<br />

• To preview the schema, click Preview or for more information, see Preview the Schema.<br />

Add Domains, Attributes, and Entity Objects to the Elements Section<br />

From the list of Available Objects, click a domain, attribute or entity object and then drag it to the Elements<br />

node in the Schema Body pane.<br />

The Elements node expands to show the newly added objects.<br />

Notes<br />

• You cannot drag reference values onto domains in the Elements node; instead, use the Simple Types node.<br />

• You can drag a simple entity or a complex entity, with all their attributes, to the Elements node and then drag<br />

other attributes to its choice, sequence, or all attribute container.<br />

• To convert an attribute of an element to an element, drag the attribute out of the complexType container.<br />

• To convert an element to an attribute of another element, drag the element into the complexType node.<br />

• An element defined in the elements node may have a complex type underneath it. You can insert the complex<br />

type under the element and insert composites under that.<br />

• If you drag an attribute to the complex type node under an element, it is included within the xs:attribute<br />

container below the composite.<br />

• If you drag an attribute to a composite node, it is included within the xs:element container below the<br />

composite.<br />

Add Domains, Attributes and Entities to the Groups Section<br />

From the list of Available Objects, click a domain, attribute or entity and then drag it to the Groups node in the<br />

Schema Body pane.<br />

The Groups node expands to show the newly added object.<br />

Notes<br />

• Use the Groups node to define groups that another part of the schema, such as an element can reference.<br />

• A group may have a composite underneath it just like an element or complex type.<br />

EMBARCAD<strong>ER</strong>O TECHNOLOGIES > <strong>ER</strong>/STUDIO® 8.0.3 US<strong>ER</strong> GUIDE 265

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!