IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.ras.profile.defauld.defaultprofile
Interface Descriptor

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
Property

public interface Descriptor
extends org.eclipse.emf.ecore.EObject

A representation of the model object ' Descriptor'. xmi:contentType=mixed A is a simple key/value pair that emphasizes certain qualities and characteristics of the asset. Often these are searchable and may be used for asset discovery and evaluation. The value is captured as the elements content in plain text. A may be associated with a specific through the context association. This means that the key and value should be thought of in the specified . The value of the context association must reference an existing id of a element.

The following features are supported:

See Also:
DefaultprofilePackage.getDescriptor()

Method Summary
 Context createContext()
          Helper method used to create a Context element using the factory assigned to the Descriptor.
 IAssetFactory getAssetFactory()
          Get the asset factory with which to create the elements in this Descriptor.
 Context getContext()
          Returns the value of the 'Context' reference.
 String getName()
          Returns the value of the 'Name' attribute.
 String getValue()
          Returns the value of the 'Value' attribute.
 void setAssetFactory(IAssetFactory theAssetFactory)
          Set the asset factory with which to create the elements in this Descriptor.
 void setContext(Context value)
          Sets the value of the ' Context' reference.
 void setName(String value)
          Sets the value of the ' Name' attribute.
 void setValue(String value)
          Sets the value of the ' Value' attribute.
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getName

public String getName()
Returns the value of the 'Name' attribute. The key is specified by the name attribute, and is typically a word or two.

Returns:
the value of the 'Name' attribute.
See Also:
setName(String), DefaultprofilePackage.getDescriptor_Name()

setName

public void setName(String value)
Sets the value of the ' Name' attribute.

Parameters:
value - the new value of the 'Name' attribute.
See Also:
getName()

getValue

public String getValue()
Returns the value of the 'Value' attribute.

Returns:
the value of the 'Value' attribute.
See Also:
setValue(String), DefaultprofilePackage.getDescriptor_Value()

setValue

public void setValue(String value)
Sets the value of the ' Value' attribute.

Parameters:
value - the new value of the 'Value' attribute.
See Also:
getValue()

getContext

public Context getContext()
Returns the value of the 'Context' reference.

Returns:
the value of the 'Context' reference.
See Also:
setContext(Context), DefaultprofilePackage.getDescriptor_Context()

setContext

public void setContext(Context value)
Sets the value of the ' Context' reference.

Parameters:
value - the new value of the 'Context' reference.
See Also:
getContext()

setAssetFactory

public void setAssetFactory(IAssetFactory theAssetFactory)
Set the asset factory with which to create the elements in this Descriptor. This method is called by the AssetFactory's create method when the Descriptor is created. It should never have to be set by the user.

Parameters:
theAssetFactory - with which to create elements

getAssetFactory

public IAssetFactory getAssetFactory()
Get the asset factory with which to create the elements in this Descriptor.

Returns:
the asset factory

createContext

public Context createContext()
Helper method used to create a Context element using the factory assigned to the Descriptor.

Returns:
a new instance of a Context element or null if one could not be created.
See Also:
Context

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.