|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Prototype
Used to create a template for creating other metadata objects or set of metadata objects that represent a concept. Any metadata type may be associated with a prototype. The prototype includes all possible valid options or properties that may be used to describe the metadata object that is represented by the prototype. The prototype may then be used to drive a UI that will aid an end user in the creation of metadata. The model allows for any metadata type to be considered a prototype, however, there is currently no defined way to specify that the given metadata object is a prototype that does not represent a particular entity. It is recommended that only metadata types that have a role attribute be considered candidates for defining new prototypes. The role attribute is typically used by clients to filter the metadata before displaying to end users.
Attributes of Prototype are:
Associations of Prototype are:
factory
create methods. // create a store to contain your objects for this change. If you do not have an existing object // or store to use. You may obtain the store from another object by using Object.getObjectStore(). MdFactory factory; //where "factory" is a valid MdFactory instance MdObjectStore objectStore = factory.createObjectStore(); Prototype myObject = (Prototype) factory.createComplexMetadataObject(objectStore, "Prototype_Object", MetadataObjects.PROTOTYPE, "AAAAAAAA"); myObject.updateMetadataAll(); // Write object to server objectStore.dispose(); // dispose of the object store if it is no longer needed
MdOMIUtil
.
updateMetadataAll
method.
delete
method can be used.
This will flag the object as being deleted on the client, and will require an update call to persist
the change to the server.
Field Summary | |
---|---|
static java.lang.String |
ASSOCIATION_ASSOCIATIONS_NAME
Constant used for the name of the Associations association. |
static java.lang.String |
ASSOCIATION_PROTOTYPEPROPERTIES_NAME
Constant used for the name of the PrototypeProperties association. |
static java.lang.String |
ATTRIBUTE_METADATATYPE_NAME
Constant used for the name of the MetadataType attribute. |
Fields inherited from interface com.sas.metadata.remote.PrimaryType |
---|
ASSOCIATION_FAVORITESCONTAINERS_NAME, ATTRIBUTE_ISHIDDEN_NAME, ATTRIBUTE_PUBLICTYPE_NAME |
Fields inherited from interface com.sas.metadata.remote.MdObjectBase |
---|
ATTRIBUTE_DESC_NAME, ATTRIBUTE_ID_NAME, ATTRIBUTE_METADATACREATED_NAME, ATTRIBUTE_METADATAUPDATED_NAME, ATTRIBUTE_NAME_NAME |
Method Summary | |
---|---|
AssociationList |
getAssociations()
Gets the AssociationList of Associations |
AssociationList |
getAssociations(boolean fGoToServer)
Gets the Associationlist of Associations |
java.lang.String |
getMetadataType()
Gets the String value of MetadataType |
int |
getMetadataTypeMaxLength()
Gets the maximum length of MetadataType |
int |
getMetadataTypeState()
Gets the Metadata State of MetadataType |
AssociationList |
getPrototypeProperties()
Gets the AssociationList of PrototypeProperties |
AssociationList |
getPrototypeProperties(boolean fGoToServer)
Gets the Associationlist of PrototypeProperties |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: Associations PrototypeProperties |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: |
void |
setAssociations(AssociationList list)
Sets the Associations list to be list . |
void |
setAssociations(AssociationList inObjects,
int state)
Sets the entire AssociationList to match the passed in Vector, sets the state of the AssociationList |
void |
setMetadataType(java.lang.String inMetadataType)
Sets the MetadataType value and sets the state to MetadataState.LOCAL. |
void |
setMetadataType(java.lang.String inMetadataType,
int state)
Sets the MetadataType Metadata State. |
void |
setMetadataTypeState(int state)
Sets the Metadata State of MetadataType . |
void |
setPrototypeProperties(AssociationList list)
Sets the PrototypeProperties list to be list . |
void |
setPrototypeProperties(AssociationList inObjects,
int state)
Sets the entire AssociationList to match the passed in Vector, sets the state of the AssociationList |
Methods inherited from interface com.sas.metadata.remote.PrimaryType |
---|
getFavoritesContainers, getFavoritesContainers, getIsHidden, getIsHiddenState, getPublicType, getPublicTypeMaxLength, getPublicTypeState, setFavoritesContainers, setFavoritesContainers, setIsHidden, setIsHidden, setIsHidden, setIsHidden, setIsHiddenState, setPublicType, setPublicType, setPublicTypeState |
Methods inherited from interface com.sas.metadata.remote.MdObjectBaseXML |
---|
closeUpdateMetadataXML, createEmptyXML, createObjectRefreshXML, createObjectXML, createObjectXML, createUpdateAssociationXML, createUpdateAssociationXML, createUpdateSimpleXML, doCreateUpdateXML, getUpdateSimpleSubstring, updateMetadataAll |
Field Detail |
---|
static final java.lang.String ATTRIBUTE_METADATATYPE_NAME
MetadataType: The metadata type that is described by this prototype. For example, a TCPIPConnection, SoftwareComponent, SASLibrary.
static final java.lang.String ASSOCIATION_ASSOCIATIONS_NAME
Associations: The association property objects that are reference this object as the partner in an association.
static final java.lang.String ASSOCIATION_PROTOTYPEPROPERTIES_NAME
PrototypeProperties: The attribute and association properties of this prototype.
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
initializeRequiredObjects
in interface MdObjectBaseUtil
initializeRequiredObjects
in interface PrimaryType
initializeRequiredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.void initializePredObjects() throws java.rmi.RemoteException
Associations
PrototypeProperties
initializePredObjects
in interface MdObjectBase
initializePredObjects
in interface PrimaryType
initializePredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getMetadataType() throws java.rmi.RemoteException
String
value of MetadataType
MetadataType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getMetadataTypeState() throws java.rmi.RemoteException
MetadataType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getMetadataTypeMaxLength() throws java.rmi.RemoteException
MetadataType
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getAssociations() throws java.rmi.RemoteException, MdException
Associations
Associations
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getPrototypeProperties() throws java.rmi.RemoteException, MdException
PrototypeProperties
PrototypeProperties
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getAssociations(boolean fGoToServer) throws java.rmi.RemoteException, MdException
Associations
fGoToServer
- boolean Get the value from the server.
Associations
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getPrototypeProperties(boolean fGoToServer) throws java.rmi.RemoteException, MdException
PrototypeProperties
fGoToServer
- boolean Get the value from the server.
PrototypeProperties
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.void setMetadataType(java.lang.String inMetadataType) throws java.rmi.RemoteException
MetadataType
value and sets the state to MetadataState.LOCAL.
inMetadataType
- String
java.rmi.RemoteException
- If error communicating with remote object.void setMetadataType(java.lang.String inMetadataType, int state) throws java.rmi.RemoteException
MetadataType
Metadata State.
inMetadataType
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setMetadataTypeState(int state) throws java.rmi.RemoteException
MetadataType
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setAssociations(AssociationList list) throws java.rmi.RemoteException
Associations
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setAssociations(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setPrototypeProperties(AssociationList list) throws java.rmi.RemoteException
PrototypeProperties
list to be list
. Objects of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setPrototypeProperties(AssociationList inObjects, int state) throws java.rmi.RemoteException
inObjects
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |