|
||||||||||
| 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.specloader.internal.instances.InstanceCollectionSpecification
public class InstanceCollectionSpecification
| 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 | |
|---|---|
InstanceCollectionSpecification(SpecificationLoader specificationLoader,
RuntimeContext runtimeContext)
|
|
| Method Summary | |
|---|---|
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. |
java.lang.String |
getIconName(NakedObject object)
Returns the name of an icon to use for the specified object. |
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. |
NakedObjectAction[] |
getServiceActionsFor(NakedObjectActionType type)
TODO: convert to relatedResourceActions |
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 object)
Returns the title string for the specified object. |
void |
introspect(FacetDecoratorSet decorator)
Discovers what attributes and behaviour the type specified by this specification. |
boolean |
isCollectionOrIsAggregated()
Whether objects of this type are a collection or are intrinsically aggregated. |
void |
markAsService()
|
| 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, getIdentifier, getInstance, getObjectActionList, getPropertyList, getRuntimeContext, getServiceActions, hasSubclasses, interfaces, isAbstract, isCollection, isDirty, isEncodeable, isFinal, isImmutable, isIntrospected, isObject, isOfType, isParseable, isService, isValid, isValidResult, isValueOrIsAggregated, markDirty, persistability, 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 InstanceCollectionSpecification(SpecificationLoader specificationLoader,
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 NakedObjectAssociation getAssociation(java.lang.String name)
NakedObjectAssociationContainer
public NakedObjectAction[] getServiceActionsFor(NakedObjectActionType type)
NakedObjectActionContainer
getServiceActionsFor in interface NakedObjectActionContainergetServiceActionsFor in class IntrospectableSpecificationAbstractpublic 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 java.lang.String getSingularName()
NakedObjectSpecification
public java.lang.String getPluralName()
NakedObjectSpecification
public java.lang.String getShortName()
NakedObjectSpecification
public java.lang.String getTitle(NakedObject object)
NakedObjectSpecification
public java.lang.String getIconName(NakedObject object)
NakedObjectSpecification
getIconName in interface NakedObjectSpecificationgetIconName in class IntrospectableSpecificationAbstractpublic java.lang.String getDescription()
NakedObjectSpecification
public boolean isCollectionOrIsAggregated()
NakedObjectSpecification
In effect, means has got a CollectionFacet and/or got the AggregatedFacet.
isCollectionOrIsAggregated in interface NakedObjectSpecificationisCollectionOrIsAggregated in class IntrospectableSpecificationAbstract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||