com.ashridgetech.jamda.uml
Class Feature

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.ModelElement
        |
        +--com.ashridgetech.jamda.uml.Feature
Direct Known Subclasses:
Attribute, Operation

public abstract class Feature
extends ModelElement

The base class for features of a StructuredType.

Version:
1.0
Author:
paulb

Nested Class Summary
 
Nested classes inherited from class com.ashridgetech.jamda.uml.ModelElement
ModelElement.DuplicateElementException, ModelElement.ElementListStore, ModelElement.ElementNameListStore, ModelElement.ElementNameStore, ModelElement.ElementStore, ModelElement.TaggedValue, ModelElement.UnknownElementException
 
Field Summary
static java.lang.String DEFAULT_OID_NAME
           
 
Fields inherited from class com.ashridgetech.jamda.uml.ModelElement
DUMMY_STORE
 
Constructor Summary
protected Feature(ru.novosoft.uml.foundation.core.MFeature mf, StructuredType owner)
          Creates new Feature from a NSUML MFeature object.
 
Method Summary
 java.util.Set getReaders()
          Get Actors who can read this Property
 StructuredType.Visibility getVisibility()
          Get the visibility of this Attribute.
 java.util.Set getWriters()
          Get Actors who can write this Property
 boolean isReadableBy(Actor actor)
          Indicate whether the value(s) of this property can be read by a given Actor.
 boolean isStatic()
          Show whether this Feature is of static scope.
 boolean isWritableBy(Actor actor)
          Indicate whether the value(s) of this property can be written by a given Actor.
protected  Feature setFeatureStatic(boolean isStatic)
          Set whether this Feature is of static scope.
protected  Feature setFeatureVisibility(StructuredType.Visibility visibility)
          Set the visibility of this Attribute.
 
Methods inherited from class com.ashridgetech.jamda.uml.ModelElement
add, addStereotype, addTaggedValue, addTaggedValue, addTaggedValues, addTaggedValuesInternal, checkInitialised, checkState, checkValid, findTaggedValueCollection, getBooleanTaggedValue, getChildElements, getComment, getDescription, getDirectSource, getElement, getElementType, getFullName, getId, getModel, getName, getNsElement, getOriginalSource, getParentElement, getProperties, getStereotypes, getStringTaggedValue, getSubElementStore, getTaggedValue, getTaggedValues, getXpathContext, hasStereotype, hasTaggedValue, init, initLoad, isInitialised, load, load, load, loadElement, logChange, logger, logger, logLoad, logLoadWarning, logNew, logWarning, removeTaggedValue, select, setComment, setDirectSource, setTaggedValue, setTaggedValue, setTaggedValue, setTaggedValues, stereotype, tag, tagError, toString, type, type, type, xpath, xpathList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_OID_NAME

public static final java.lang.String DEFAULT_OID_NAME
See Also:
Constant Field Values
Constructor Detail

Feature

protected Feature(ru.novosoft.uml.foundation.core.MFeature mf,
                  StructuredType owner)
Creates new Feature from a NSUML MFeature object.

Method Detail

isStatic

public boolean isStatic()
Show whether this Feature is of static scope.

Returns:
true if this is static

setFeatureStatic

protected Feature setFeatureStatic(boolean isStatic)
Set whether this Feature is of static scope.

Parameters:
isStatic - true if this is to be static
Returns:
this object

getVisibility

public StructuredType.Visibility getVisibility()
Get the visibility of this Attribute.

Returns:
the Visibility instance representing this Attributes visibility

setFeatureVisibility

protected Feature setFeatureVisibility(StructuredType.Visibility visibility)
Set the visibility of this Attribute.

Parameters:
visibility - the Visibility instance representing this Attribute's visibility - must not be null
Returns:
this object

isReadableBy

public boolean isReadableBy(Actor actor)
Indicate whether the value(s) of this property can be read by a given Actor.

Returns:
true if the values can be read

isWritableBy

public boolean isWritableBy(Actor actor)
Indicate whether the value(s) of this property can be written by a given Actor.

Returns:
true if the values can be read

getReaders

public java.util.Set getReaders()
Get Actors who can read this Property

Returns:
the set of Actors. May be null to indicate that ALL Actors can read this Property, or an empty Set to indicate that NO Actors can read this Property

getWriters

public java.util.Set getWriters()
Get Actors who can write this Property

Returns:
the set of Actors. May be null to indicate that ALL Actors can write this Property, or an empty Set to indicate that NO Actors can write this Property


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.