Using the SAS Metadata Model |
A SAS Metadata Model metadata type is instantiated by creating a metadata object that stores object-specific values for the metadata type's attributes and associations in a SAS Metadata Repository. The SAS Open Metadata Interface IOMI methods support creating and updating objects by submitting XML metadata property strings that provide object-specific values. For information about how to format an XML metadata property string that defines an object, see Constructing a Metadata Property String in SAS 9.2 Open Metadata Interface: Reference and Usage. The SAS Java Metadata Interface provides generated Java interfaces and implementation classes for each SAS Metadata Model metadata type. After creating an object, you can use getter and setter methods from each interface to define an object's attributes and associations.
To create a logical metadata definition, create the primary or top-level object in the definition. This primary object should be a PrimaryType subtype from the SAS Metadata Model. Therefore, PrimaryType properties are available to manage the object created by the definition. Next, create associations and objects that describe the supporting metadata types. The supporting metadata types can be SecondaryType subtypes in the SAS Metadata Model, or public components.
The objects that compose a logical metadata definition can be created and associated with one another in a single server request. Or, they can be created and associated in several server requests. The examples in Usage Scenarios show several ways that a logical metadata definition can be created. For information about methods that enable you to add objects to a SAS Metadata Repository, see SAS 9.2 Open Metadata Interface: Reference and Usage.
The Name= attribute is required to instantiate a metadata type. Only four SAS namespace metadata types have additional required attributes.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.