Package com.sas.metadata.remote
Interface DeviceType
- All Superinterfaces:
CMetadata,MdObjectBase,MdObjectBaseUtil,MdObjectBaseXML,PrimaryType,Remote,Root
Defines a prototype for a specific supported device.
Example: create a DeviceType with name "DeviceType_Object", in repository "AAAAAAAA".
Attributes of DeviceType are:
Associations of DeviceType are:
Usage
To create an instance of this DeviceType, use thefactory
create methods. Example: create a DeviceType with name "DeviceType_Object", in repository "AAAAAAAA".
// 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(); DeviceType myObject = (DeviceType) factory.createComplexMetadataObject(objectStore, "DeviceType_Object", MetadataObjects.DEVICETYPE, "AAAAAAAA"); myObject.updateMetadataAll(); // Write object to server objectStore.dispose(); // dispose of the object store if it is no longer needed
Behavior
- Attributes and associations for this object can be retrieved by using the methods in
MdOMIUtil. - When changes are made to the object, either by setting an attribute or adding objects to a particular association,
they can be persisted to the metadata server with the
updateMetadataAllmethod. - If an object needs to be deleted, the
deletemethod 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.
Dependencies
This class depends on objects being contained in an MdObjectStore. Object stores should be disposed of when they are no longer needed as this will help clean up memory. Disposing an object store will dispose of all objects contained within that store.- Since:
- 9.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant used for the name of the ContentTypes association.static final StringConstant used for the name of the DeployedDevices association.static final StringConstant used for the name of the BitDepth attribute.static final StringConstant used for the name of the Height attribute.static final StringConstant used for the name of the IsColor attribute.static final StringConstant used for the name of the Width attribute.Fields inherited from interface com.sas.metadata.remote.MdObjectBase
ATTRIBUTE_DESC_NAME, ATTRIBUTE_ID_NAME, ATTRIBUTE_METADATACREATED_NAME, ATTRIBUTE_METADATAUPDATED_NAME, ATTRIBUTE_NAME_NAMEFields inherited from interface com.sas.metadata.remote.PrimaryType
ASSOCIATION_FAVORITESCONTAINERS_NAME, ATTRIBUTE_ISHIDDEN_NAME, ATTRIBUTE_PUBLICTYPE_NAMEFields inherited from interface com.sas.metadata.remote.Root
ASSOCIATION_ACCESSCONTROLS_NAME, ASSOCIATION_CHANGES_NAME, ASSOCIATION_CUSTOMASSOCIATIONS_NAME, ASSOCIATION_DOCUMENTS_NAME, ASSOCIATION_EXTENSIONS_NAME, ASSOCIATION_EXTERNALIDENTITIES_NAME, ASSOCIATION_GROUPS_NAME, ASSOCIATION_IMPLEMENTORS_NAME, ASSOCIATION_KEYWORDS_NAME, ASSOCIATION_LOCALIZEDATTRIBUTES_NAME, ASSOCIATION_NOTES_NAME, ASSOCIATION_PRIMARYPROPERTYGROUP_NAME, ASSOCIATION_PROMPTS_NAME, ASSOCIATION_PROPERTIES_NAME, ASSOCIATION_PROPERTYSETS_NAME, ASSOCIATION_REFERENCEDOBJECTS_NAME, ASSOCIATION_RESPONSIBLEPARTIES_NAME, ASSOCIATION_SOURCETRANSFORMATIONS_NAME, ASSOCIATION_SPECSOURCETRANSFORMATIONS_NAME, ASSOCIATION_SPECTARGETTRANSFORMATIONS_NAME, ASSOCIATION_TARGETTRANSFORMATIONS_NAME, ASSOCIATION_TIMESTAMPS_NAME, ASSOCIATION_TREES_NAME, ASSOCIATION_TSOBJECTNAMESPACE_NAME, ASSOCIATION_USEDBYPROTOTYPES_NAME, ASSOCIATION_USINGPROTOTYPE_NAME, ASSOCIATION_VARIABLES_NAME, ATTRIBUTE_CHANGESTATE_NAME, ATTRIBUTE_LOCKEDBY_NAME, ATTRIBUTE_USAGEVERSION_NAME -
Method Summary
Modifier and TypeMethodDescriptionintGets theintvalue ofBitDepthintGets the Metadata State ofBitDepthGets the Association list ofContentTypesgetContentTypes(boolean fGoToServer) Gets the Associationlist ofContentTypesGets the AssociationList ofDeployedDevicesgetDeployedDevices(boolean fGoToServer) Gets the Associationlist ofDeployedDevicesintGets theintvalue ofHeightintGets the Metadata State ofHeightintGets theintvalue ofIsColorintGets the Metadata State ofIsColorintgetWidth()Gets theintvalue ofWidthintGets the Metadata State ofWidthvoid(S) Adds the Associated objects to the predObjects which are:
DeployedDevicesvoid(S) This initializes the Required Objects(Roles) which are:voidsetBitDepth(int inBitDepth) Sets theBitDepthvalue and sets the state to MetadataState.LOCAL.voidsetBitDepth(int inBitDepth, int state) Sets theBitDepthMetadata State.voidsetBitDepth(String inBitDepth) Sets theBitDepthvalue and sets the state to MetadataState.LOCAL.voidsetBitDepth(String inBitDepth, int state) Sets theBitDepthvalue and Metadata State.voidsetBitDepthState(int state) Sets the Metadata State ofBitDepth.voidSets theContentTypeslist to belist.voidsetContentTypes(AssociationList inObjects, int state) Sets the entire ContentTypes list to match the passed in AssociationList, sets the state of the ContentTypesvoidSets theDeployedDeviceslist to belist.voidsetDeployedDevices(AssociationList inObjects, int state) Sets the entire AssociationList to match the passed in Vector, sets the state of the AssociationListvoidsetHeight(int inHeight) Sets theHeightvalue and sets the state to MetadataState.LOCAL.voidsetHeight(int inHeight, int state) Sets theHeightMetadata State.voidsetHeight(String inHeight) Sets theHeightvalue and sets the state to MetadataState.LOCAL.voidsetHeight(String inHeight, int state) Sets theHeightvalue and Metadata State.voidsetHeightState(int state) Sets the Metadata State ofHeight.voidsetIsColor(int inIsColor) Sets theIsColorvalue and sets the state to MetadataState.LOCAL.voidsetIsColor(int inIsColor, int state) Sets theIsColorMetadata State.voidsetIsColor(String inIsColor) Sets theIsColorvalue and sets the state to MetadataState.LOCAL.voidsetIsColor(String inIsColor, int state) Sets theIsColorvalue and Metadata State.voidsetIsColorState(int state) Sets the Metadata State ofIsColor.voidsetWidth(int inWidth) Sets theWidthvalue and sets the state to MetadataState.LOCAL.voidsetWidth(int inWidth, int state) Sets theWidthMetadata State.voidsetWidth(String inWidth) Sets theWidthvalue and sets the state to MetadataState.LOCAL.voidsetWidth(String inWidth, int state) Sets theWidthvalue and Metadata State.voidsetWidthState(int state) Sets the Metadata State ofWidth.Methods inherited from interface com.sas.metadata.remote.MdObjectBase
addElementToChangeList, clearChangeList, getChangeList, getCMetadataType, getDesc, getDescMaxLength, getDescState, getFQID, getId, getIdState, getMetadataCreated, getMetadataCreatedState, getMetadataUpdated, getMetadataUpdatedState, getName, getNameMaxLength, getNameState, getObjectStore, getPredAssociations, getRepositoryID, getRequiredAssociations, getState, isAssociationRequired, isNewObject, isPredAssociation, removeElementFromChangeList, resetObject, resetState, resetStates, setCMetadataType, setDesc, setDesc, setDescState, setFQID, setFQID, setId, setId, setIdState, setMetadataCreated, setMetadataCreated, setMetadataCreatedState, setMetadataUpdated, setMetadataUpdated, setMetadataUpdatedState, setName, setName, setNameState, setObjectStore, setStateMethods inherited from interface com.sas.metadata.remote.MdObjectBaseUtil
addMdObjectListener, delete, dispose, fireMdObjectModified, getAssociatedObjects, getAssociatedObjects, getAssociatedObjects, getAssociationNames, getAssocs, getAssocsWA, getAttributeNames, getAttrs, getAttrsStates, getAuthorizationUtil, getChangeManagementState, getChgMgtExternalIdentityImportType, getClientSideOnlyObject, getMdObjectAssociation, getPopulatedAssocs, getUpdatedAttrs, getViewList, isCheckedOut, isLocked, objectModified, removeMdObjectListener, setAttrs, setChangeManagementTargetRepository, setChgMgtExternalIdentityImportType, setClientSideOnlyObject, setMdObjectAssociation, touch, updateAssnsIdsMethods inherited from interface com.sas.metadata.remote.MdObjectBaseXML
closeUpdateMetadataXML, createEmptyXML, createObjectRefreshXML, createObjectXML, createObjectXML, createUpdateAssociationXML, createUpdateAssociationXML, createUpdateSimpleXML, doCreateUpdateXML, getUpdateSimpleSubstring, updateMetadataAllMethods inherited from interface com.sas.metadata.remote.PrimaryType
getFavoritesContainers, getFavoritesContainers, getIsHidden, getIsHiddenState, getPublicType, getPublicTypeMaxLength, getPublicTypeState, setFavoritesContainers, setFavoritesContainers, setIsHidden, setIsHidden, setIsHidden, setIsHidden, setIsHiddenState, setPublicType, setPublicType, setPublicTypeStateMethods inherited from interface com.sas.metadata.remote.Root
getAccessControls, getAccessControls, getChanges, getChanges, getChangeState, getChangeStateMaxLength, getChangeStateState, getCustomAssociations, getCustomAssociations, getDocuments, getDocuments, getExtensions, getExtensions, getExternalIdentities, getExternalIdentities, getGroups, getGroups, getImplementors, getImplementors, getKeywords, getKeywords, getLocalizedAttributes, getLocalizedAttributes, getLockedBy, getLockedByMaxLength, getLockedByState, getNotes, getNotes, getPrimaryPropertyGroup, getPrimaryPropertyGroups, getPrimaryPropertyGroups, getPrompts, getPrompts, getProperties, getProperties, getPropertySets, getPropertySets, getReferencedObjects, getReferencedObjects, getResponsibleParties, getResponsibleParties, getSourceTransformations, getSourceTransformations, getSpecSourceTransformations, getSpecSourceTransformations, getSpecTargetTransformations, getSpecTargetTransformations, getTargetTransformations, getTargetTransformations, getTimestamps, getTimestamps, getTrees, getTrees, getTSObjectNamespace, getTSObjectNamespaces, getTSObjectNamespaces, getUsageVersion, getUsageVersionState, getUsedByPrototypes, getUsedByPrototypes, getUsingPrototype, getUsingPrototypes, getUsingPrototypes, getVariables, getVariables, setAccessControls, setAccessControls, setChanges, setChanges, setChangeState, setChangeState, setChangeStateState, setCustomAssociations, setCustomAssociations, setDocuments, setDocuments, setExtensions, setExtensions, setExternalIdentities, setExternalIdentities, setGroups, setGroups, setImplementors, setImplementors, setKeywords, setKeywords, setLocalizedAttributes, setLocalizedAttributes, setLockedBy, setLockedBy, setLockedByState, setNotes, setNotes, setPrimaryPropertyGroup, setPrimaryPropertyGroups, setPrimaryPropertyGroups, setPrompts, setPrompts, setProperties, setProperties, setPropertySets, setPropertySets, setReferencedObjects, setReferencedObjects, setResponsibleParties, setResponsibleParties, setSourceTransformations, setSourceTransformations, setSpecSourceTransformations, setSpecSourceTransformations, setSpecTargetTransformations, setSpecTargetTransformations, setTargetTransformations, setTargetTransformations, setTimestamps, setTimestamps, setTrees, setTrees, setTSObjectNamespace, setTSObjectNamespaces, setTSObjectNamespaces, setUsageVersion, setUsageVersion, setUsageVersion, setUsageVersion, setUsageVersionState, setUsedByPrototypes, setUsedByPrototypes, setUsingPrototype, setUsingPrototypes, setUsingPrototypes, setVariables, setVariables
-
Field Details
-
ATTRIBUTE_WIDTH_NAME
static final String ATTRIBUTE_WIDTH_NAMEConstant used for the name of the Width attribute.Width: Width supported by this device.
- See Also:
-
ATTRIBUTE_HEIGHT_NAME
static final String ATTRIBUTE_HEIGHT_NAMEConstant used for the name of the Height attribute.Height: Height supported by this device.
- See Also:
-
ATTRIBUTE_ISCOLOR_NAME
static final String ATTRIBUTE_ISCOLOR_NAMEConstant used for the name of the IsColor attribute.IsColor: A boolean value that indicates whether this device supports color.
- See Also:
-
ATTRIBUTE_BITDEPTH_NAME
static final String ATTRIBUTE_BITDEPTH_NAMEConstant used for the name of the BitDepth attribute.BitDepth: Bit depth supported by this device.
- See Also:
-
ASSOCIATION_DEPLOYEDDEVICES_NAME
static final String ASSOCIATION_DEPLOYEDDEVICES_NAMEConstant used for the name of the DeployedDevices association.DeployedDevices: Devices of this device type.
- See Also:
-
ASSOCIATION_CONTENTTYPES_NAME
static final String ASSOCIATION_CONTENTTYPES_NAMEConstant used for the name of the ContentTypes association.ContentTypes: The content types that can be displayed by this device.
- See Also:
-
-
Method Details
-
initializeRequiredObjects
void initializeRequiredObjects() throws RemoteException(S) This initializes the Required Objects(Roles) which are:- Specified by:
initializeRequiredObjectsin interfaceMdObjectBaseUtil- Specified by:
initializeRequiredObjectsin interfacePrimaryType- Specified by:
initializeRequiredObjectsin interfaceRoot- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
initializePredObjects
void initializePredObjects() throws RemoteException(S) Adds the Associated objects to the predObjects which are:
DeployedDevices- Specified by:
initializePredObjectsin interfaceMdObjectBase- Specified by:
initializePredObjectsin interfacePrimaryType- Specified by:
initializePredObjectsin interfaceRoot- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getWidth
int getWidth() throws RemoteExceptionGets theintvalue ofWidth- Returns:
- The
Width - Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getWidthState
int getWidthState() throws RemoteExceptionGets the Metadata State ofWidth- Returns:
- The State.
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getHeight
int getHeight() throws RemoteExceptionGets theintvalue ofHeight- Returns:
- The
Height - Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getHeightState
int getHeightState() throws RemoteExceptionGets the Metadata State ofHeight- Returns:
- The State.
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getIsColor
int getIsColor() throws RemoteExceptionGets theintvalue ofIsColor- Returns:
- The
IsColor - Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getIsColorState
int getIsColorState() throws RemoteExceptionGets the Metadata State ofIsColor- Returns:
- The State.
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getBitDepth
int getBitDepth() throws RemoteExceptionGets theintvalue ofBitDepth- Returns:
- The
BitDepth - Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getBitDepthState
int getBitDepthState() throws RemoteExceptionGets the Metadata State ofBitDepth- Returns:
- The State.
- Throws:
RemoteException- If error connecting/communicating to/with remote object.
-
getDeployedDevices
Gets the AssociationList ofDeployedDevices- Returns:
- Returns the AssociationList of
DeployedDeviceswhich can be of type:
Device - Throws:
RemoteException- If error connecting/communicating to/with remote object.MdException- If error getting/setting part of the object.
-
getContentTypes
Gets the Association list ofContentTypes- Returns:
- The AssociationList of
ContentTypeswhich can be of type:
ContentType - Throws:
RemoteException- If error connecting/communicating to/with remote object.MdException- If error getting/setting part of the object.
-
getDeployedDevices
Gets the Associationlist ofDeployedDevices- Parameters:
fGoToServer- boolean Get the value from the server.- Returns:
- Returns the AssociationList of
DeployedDeviceswhich can be of type:
Device - Throws:
RemoteException- If error connecting/communicating to/with remote object.MdException- If error getting/setting part of the object.
-
getContentTypes
Gets the Associationlist ofContentTypes- Parameters:
fGoToServer- boolean Get the value from the server.- Returns:
- Returns the
ContentTypeswhich can be of type:
ContentType - Throws:
RemoteException- If error connecting/communicating to/with remote object.MdException- If error getting/setting part of the object.
-
setWidth
void setWidth(int inWidth) throws RemoteException Sets theWidthvalue and sets the state to MetadataState.LOCAL.- Parameters:
inWidth- int- Throws:
RemoteException- If error communicating with remote object.
-
setWidth
void setWidth(int inWidth, int state) throws RemoteException Sets theWidthMetadata State.- Parameters:
inWidth- intstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setWidth
void setWidth(String inWidth) throws RemoteException Sets theWidthvalue and sets the state to MetadataState.LOCAL.- Parameters:
inWidth- String- Throws:
RemoteException- If error communicating with remote object.
-
setWidth
void setWidth(String inWidth, int state) throws RemoteException Sets theWidthvalue and Metadata State.- Parameters:
inWidth- Stringstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setWidthState
void setWidthState(int state) throws RemoteException Sets the Metadata State ofWidth.- Parameters:
state- int- Throws:
RemoteException- If error communicating with remote object.
-
setHeight
void setHeight(int inHeight) throws RemoteException Sets theHeightvalue and sets the state to MetadataState.LOCAL.- Parameters:
inHeight- int- Throws:
RemoteException- If error communicating with remote object.
-
setHeight
void setHeight(int inHeight, int state) throws RemoteException Sets theHeightMetadata State.- Parameters:
inHeight- intstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setHeight
void setHeight(String inHeight) throws RemoteException Sets theHeightvalue and sets the state to MetadataState.LOCAL.- Parameters:
inHeight- String- Throws:
RemoteException- If error communicating with remote object.
-
setHeight
void setHeight(String inHeight, int state) throws RemoteException Sets theHeightvalue and Metadata State.- Parameters:
inHeight- Stringstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setHeightState
void setHeightState(int state) throws RemoteException Sets the Metadata State ofHeight.- Parameters:
state- int- Throws:
RemoteException- If error communicating with remote object.
-
setIsColor
void setIsColor(int inIsColor) throws RemoteException Sets theIsColorvalue and sets the state to MetadataState.LOCAL.- Parameters:
inIsColor- int- Throws:
RemoteException- If error communicating with remote object.
-
setIsColor
void setIsColor(int inIsColor, int state) throws RemoteException Sets theIsColorMetadata State.- Parameters:
inIsColor- intstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setIsColor
void setIsColor(String inIsColor) throws RemoteException Sets theIsColorvalue and sets the state to MetadataState.LOCAL.- Parameters:
inIsColor- String- Throws:
RemoteException- If error communicating with remote object.
-
setIsColor
void setIsColor(String inIsColor, int state) throws RemoteException Sets theIsColorvalue and Metadata State.- Parameters:
inIsColor- Stringstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setIsColorState
void setIsColorState(int state) throws RemoteException Sets the Metadata State ofIsColor.- Parameters:
state- int- Throws:
RemoteException- If error communicating with remote object.
-
setBitDepth
void setBitDepth(int inBitDepth) throws RemoteException Sets theBitDepthvalue and sets the state to MetadataState.LOCAL.- Parameters:
inBitDepth- int- Throws:
RemoteException- If error communicating with remote object.
-
setBitDepth
void setBitDepth(int inBitDepth, int state) throws RemoteException Sets theBitDepthMetadata State.- Parameters:
inBitDepth- intstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setBitDepth
void setBitDepth(String inBitDepth) throws RemoteException Sets theBitDepthvalue and sets the state to MetadataState.LOCAL.- Parameters:
inBitDepth- String- Throws:
RemoteException- If error communicating with remote object.
-
setBitDepth
void setBitDepth(String inBitDepth, int state) throws RemoteException Sets theBitDepthvalue and Metadata State.- Parameters:
inBitDepth- Stringstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setBitDepthState
void setBitDepthState(int state) throws RemoteException Sets the Metadata State ofBitDepth.- Parameters:
state- int- Throws:
RemoteException- If error communicating with remote object.
-
setDeployedDevices
- Parameters:
list- AssociationList- Throws:
RemoteException- If error communicating with remote object.
-
setDeployedDevices
Sets the entire AssociationList to match the passed in Vector, sets the state of the AssociationList- Parameters:
inObjects- AssociationListstate- int- Throws:
RemoteException- If error communicating with remote object.
-
setContentTypes
- Parameters:
list- AssociationList- Throws:
RemoteException- If error communicating with remote object.
-
setContentTypes
Sets the entire ContentTypes list to match the passed in AssociationList, sets the state of the ContentTypes- Parameters:
inObjects- AssociationListstate- int- Throws:
RemoteException- If error communicating with remote object.
-