|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.facets.FacetHolderImpl
org.nakedobjects.metamodel.runtimecontext.spec.IntrospectableSpecificationAbstract
org.nakedobjects.metamodel.runtimecontext.spec.NakedObjectSpecificationNoMember
public class NakedObjectSpecificationNoMember
A simple implementation used for objects that have no members (fields or actions). Used for primitives and as a fall-back if no specification can be otherwise generated.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nakedobjects.metamodel.spec.NakedObjectSpecification |
|---|
NakedObjectSpecification.CreationMode |
| Field Summary |
|---|
| Fields inherited from class org.nakedobjects.metamodel.runtimecontext.spec.IntrospectableSpecificationAbstract |
|---|
fields, fullName, identifier, objectActions, superClassSpecification |
| Constructor Summary | |
|---|---|
NakedObjectSpecificationNoMember(java.lang.String className,
RuntimeContext runtimeContext)
|
|
| Method Summary | |
|---|---|
InteractionContext |
createPersistInteractionContext(AuthenticationSession session,
boolean programmatic,
NakedObject targetNakedObject)
Does nothing, but should never be called. |
void |
debugData(DebugString debug)
|
java.lang.String |
debugTitle()
|
NakedObjectAssociation |
getAssociation(java.lang.String name)
Get the field object representing the field with the specified field identifier. |
java.lang.String |
getDescription()
Returns the description, if any, of the specification. |
NakedObjectAction |
getObjectAction(NakedObjectActionType type,
java.lang.String id)
Get the action object represented by the specified identity string. |
NakedObjectAction |
getObjectAction(NakedObjectActionType type,
java.lang.String id,
NakedObjectSpecification[] parameters)
Returns the action of the specified type with the specified signature. |
NakedObjectAction[] |
getObjectActions(NakedObjectActionType... type)
Returns an array of actions of the specified type(s). |
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 naked)
Returns the title string for the specified object. |
void |
introspect(FacetDecoratorSet decorator)
Discovers what attributes and behaviour the type specified by this specification. |
Consent |
isValid(NakedObject transientObject)
Determines whether the specified object is in a valid state (for example, so can be persisted); represented as a Consent. |
void |
markAsService()
|
Persistability |
persistability()
Determines if objects of this specification can be persisted or not. |
| Methods inherited from class org.nakedobjects.metamodel.runtimecontext.spec.IntrospectableSpecificationAbstract |
|---|
addSubclass, clearDirty, createObject, createTitleInteractionContext, createValidityInteractionContext, getActions, getAssociationList, getAssociationList, getAssociations, getAssociations, getAuthenticationSession, getCollectionList, getDefaultValue, getFacet, getFullName, getIconName, getIdentifier, getInstance, getObjectActionList, getPropertyList, getRuntimeContext, getServiceActions, getServiceActionsFor, hasSubclasses, interfaces, isAbstract, isCollection, isCollectionOrIsAggregated, isDirty, isEncodeable, isFinal, isImmutable, isIntrospected, isObject, isOfType, isParseable, isService, isValidResult, isValueOrIsAggregated, markDirty, setIntrospected, subclasses, superclass, toString |
| Methods inherited from class org.nakedobjects.metamodel.facets.FacetHolderImpl |
|---|
addFacet, addFacet, containsFacet, getFacets, getFacetTypes, removeFacet, removeFacet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.metamodel.facets.FacetHolder |
|---|
addFacet, addFacet, containsFacet, getFacets, getFacetTypes, removeFacet, removeFacet |
| Constructor Detail |
|---|
public NakedObjectSpecificationNoMember(java.lang.String className,
RuntimeContext runtimeContext)
| Method Detail |
|---|
public void markAsService()
public void introspect(FacetDecoratorSet decorator)
IntrospectableSpecificationAs specifications are cyclic (specifically a class will reference its subclasses, which in turn reference their superclass) they need be created first, and then later work out its internals. This allows for cyclic references to the be accommodated as there should always a specification available even though it might not be complete.
public java.lang.String getTitle(NakedObject naked)
NakedObjectSpecification
public java.lang.String getShortName()
NakedObjectSpecification
public java.lang.String getSingularName()
NakedObjectSpecification
public java.lang.String getPluralName()
NakedObjectSpecification
public java.lang.String getDescription()
NakedObjectSpecification
public NakedObjectAssociation getAssociation(java.lang.String name)
NakedObjectAssociationContainer
public NakedObjectAction[] getObjectActions(NakedObjectActionType... type)
NakedObjectActionContainer
If the type is null, then returns all user,
exploration and debug actions (but not action sets).
getObjectActions in interface NakedObjectActionContainergetObjectActions in class IntrospectableSpecificationAbstract
public NakedObjectAction getObjectAction(NakedObjectActionType type,
java.lang.String id,
NakedObjectSpecification[] parameters)
NakedObjectActionContainer
public NakedObjectAction getObjectAction(NakedObjectActionType type,
java.lang.String id)
NakedObjectActionContainer
The identity string should be Identifier.toNameParmsIdentityString().
public Consent isValid(NakedObject transientObject)
NakedObjectSpecificationConsent.
isValid in interface NakedObjectSpecificationisValid in class IntrospectableSpecificationAbstractpublic Persistability persistability()
NakedObjectSpecificationPersistability.TRANSIENT NakedObject.isPersistent() will indicated
whether the object is persistent or not. If they cannot be persisted then NakedObject.
NakedObjectSpecification.persistability() should be ignored.
persistability in interface NakedObjectSpecificationpersistability in class IntrospectableSpecificationAbstractpublic void debugData(DebugString debug)
public java.lang.String debugTitle()
public InteractionContext createPersistInteractionContext(AuthenticationSession session,
boolean programmatic,
NakedObject targetNakedObject)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||