|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NakedObjectSpecification
| Nested Class Summary | |
|---|---|
static class |
NakedObjectSpecification.CreationMode
Used by createObject(CreationMode) |
| Method Summary | |
|---|---|
java.lang.Object |
createObject(NakedObjectSpecification.CreationMode creationMode)
Create and optionally initialize object. |
ObjectTitleContext |
createTitleInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
NakedObject targetNakedObject)
Create an InteractionContext representing an attempt to read the object's title. |
ObjectValidityContext |
createValidityInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
NakedObject targetNakedObject)
Create an InteractionContext representing an attempt to save the object. |
java.lang.String |
getDescription()
Returns the description, if any, of the specification. |
java.lang.String |
getFullName()
Returns the name of this specification. |
java.lang.String |
getIconName(NakedObject object)
Returns the name of an icon to use for the specified object. |
java.lang.String |
getPluralName()
Returns the plural name for objects of this specification. |
java.lang.String |
getShortName()
Returns the class name without the package. |
java.lang.String |
getSingularName()
Returns the singular name for objects of this specification. |
java.lang.String |
getTitle(NakedObject adapter)
Returns the title string for the specified object. |
boolean |
isAbstract()
|
boolean |
isCollection()
Determines if objects represents a collection. |
boolean |
isCollectionOrIsAggregated()
Whether objects of this type are a collection or are intrinsically aggregated. |
boolean |
isEncodeable()
Determines if objects of this type can be converted to a data-stream. |
boolean |
isImmutable()
Whether has the ImmutableFacet. |
boolean |
isObject()
Determines if the object represents an object (value or otherwise). |
boolean |
isParseable()
Determines if objects of this type can be set up from a text entry string. |
boolean |
isService()
|
Consent |
isValid(NakedObject adapter)
Determines whether the specified object is in a valid state (for example, so can be persisted); represented as a Consent. |
InteractionResult |
isValidResult(NakedObject adapter)
Determines whether the specified object is in a valid state (for example, so can be persisted); represented as a InteractionResult. |
boolean |
isValueOrIsAggregated()
Determines if objects of this type are aggregated. |
Persistability |
persistability()
Determines if objects of this specification can be persisted or not. |
| Methods inherited from interface org.nakedobjects.metamodel.spec.Specification |
|---|
getInstance |
| Methods inherited from interface org.nakedobjects.metamodel.spec.identifier.Identified |
|---|
getIdentifier |
| Methods inherited from interface org.nakedobjects.metamodel.facets.FacetHolder |
|---|
addFacet, addFacet, containsFacet, getFacet, getFacets, getFacetTypes, removeFacet, removeFacet |
| Methods inherited from interface org.nakedobjects.metamodel.spec.feature.NakedObjectActionContainer |
|---|
getObjectAction, getObjectAction, getObjectActionList, getObjectActions, getServiceActionsFor |
| Methods inherited from interface org.nakedobjects.metamodel.spec.feature.NakedObjectAssociationContainer |
|---|
getAssociation, getAssociationList, getAssociationList, getAssociations, getAssociations, getCollectionList, getPropertyList |
| Methods inherited from interface org.nakedobjects.metamodel.spec.Hierarchical |
|---|
addSubclass, hasSubclasses, interfaces, isOfType, subclasses, superclass |
| Methods inherited from interface org.nakedobjects.metamodel.spec.Dirtiable |
|---|
clearDirty, isDirty, markDirty |
| Methods inherited from interface org.nakedobjects.metamodel.spec.DefaultProvider |
|---|
getDefaultValue |
| Method Detail |
|---|
java.lang.String getFullName()
java.lang.String getIconName(NakedObject object)
java.lang.String getPluralName()
java.lang.String getShortName()
java.lang.String getDescription()
java.lang.String getSingularName()
java.lang.String getTitle(NakedObject adapter)
boolean isAbstract()
ObjectTitleContext createTitleInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
NakedObject targetNakedObject)
InteractionContext representing an attempt to read the object's title.
ObjectValidityContext createValidityInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
NakedObject targetNakedObject)
InteractionContext representing an attempt to save the object.
Consent isValid(NakedObject adapter)
Consent.
InteractionResult isValidResult(NakedObject adapter)
InteractionResult.
Persistability persistability()
Persistability.TRANSIENT NakedObject.isPersistent() will indicated
whether the object is persistent or not. If they cannot be persisted then NakedObject.
persistability() should be ignored.
boolean isObject()
In effect, means that it doesn't have the CollectionFacet, and therefore will return
NOT isCollection()
isCollection().boolean isCollection()
In effect, means has got CollectionFacet, and therefore will return NOT isObject().
isObject()boolean isCollectionOrIsAggregated()
In effect, means has got a CollectionFacet and/or got the AggregatedFacet.
boolean isValueOrIsAggregated()
In effect, means has got AggregatedFacet or ValueFacet.
boolean isParseable()
In effect, means has got a ParseableFacet.
boolean isEncodeable()
In effect, means has got EncodableFacet.
boolean isImmutable()
ImmutableFacet.
java.lang.Object createObject(NakedObjectSpecification.CreationMode creationMode)
initialize object.
boolean isService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||