public interface Specification extends IdentifiedHolder
The most significant subinterfaces of this are ObjectSpecification
and ObjectFeature (which brings in ObjectMember and
ObjectActionParameter.
Introduces so that viewers can deal with abstract Instances of said.
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns a description of how the member is used - this complements the
help text.
|
FeatureType |
getFeatureType() |
Instance |
getInstance(ObjectAdapter adapter)
|
getIdentifieraddFacet, addFacet, containsDoOpFacet, containsFacet, getFacet, getFacets, getFacetTypes, removeFacet, removeFacetFeatureType getFeatureType()
String getDescription()
#getHelp()Instance getInstance(ObjectAdapter adapter)
Instance of this Specification with respect to
the provided ObjectAdapter.
For example, if the Specification is a
OneToOneAssociation, then is an Instance implementation
representing the { ObjectAdapter/ OneToOneAssociation
tuple.
Implementations are expected to use a double-dispatch back to the
provided ObjectAdapter (passing themselves as a parameter), using
ObjectAdapter.getInstance(Specification).
Note: this method may throw an UnsupportedOperationException; see
ObjectAdapter.getInstance(Specification) for details.
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.