public enum FeatureType extends Enum<FeatureType>
The class-level feature processing is typically performed by FacetFactorys
pertaining to OBJECT, performed before the processing of class members.
However, FacetFactorys can also be associated with OBJECT_POST_PROCESSING,
which is run after all members have been introspected. This is useful for facets
(eg the JDO Version annotation) that references class members.
TODO: should rationalize this and ObjectSpecification#getResultType()
. Note though that we don't distinguish value properties and reference
properties (and we probably shouldn't in ObjectSpecification,
either).
| Type | Property and Description |
|---|---|
boolean |
is |
| Enum Constant and Description |
|---|
ACTION |
ACTION_PARAMETER |
COLLECTION |
OBJECT |
OBJECT_POST_PROCESSING |
PROPERTY |
| Modifier and Type | Field and Description |
|---|---|
static List<FeatureType> |
ACTIONS_ONLY |
static List<FeatureType> |
COLLECTIONS_ONLY |
static List<FeatureType> |
EVERYTHING
Use of this is discouraged; instead use multiple
FacetFactorys
for different features. |
static List<FeatureType> |
EVERYTHING_BUT_PARAMETERS
Use of this is discouraged; instead use multiple
FacetFactorys
for different features. |
static List<FeatureType> |
MEMBERS |
static List<FeatureType> |
OBJECTS_AND_ACTIONS |
static List<FeatureType> |
OBJECTS_AND_COLLECTIONS |
static List<FeatureType> |
OBJECTS_AND_PROPERTIES |
static List<FeatureType> |
OBJECTS_ONLY |
static List<FeatureType> |
OBJECTS_POST_PROCESSING_ONLY |
static List<FeatureType> |
OBJECTS_PROPERTIES_AND_COLLECTIONS |
static List<FeatureType> |
PARAMETERS_ONLY |
static List<FeatureType> |
PROPERTIES_ONLY |
| Modifier and Type | Method and Description |
|---|---|
abstract org.apache.isis.applib.Identifier |
identifierFor(Class<?> type,
Method method) |
boolean |
isAction() |
boolean |
isActionParameter() |
boolean |
isCollection() |
boolean |
isProperty() |
boolean |
isPropertyOrCollection()
Convenience.
|
String |
toString() |
static FeatureType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FeatureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FeatureType OBJECT
public static final FeatureType PROPERTY
public static final FeatureType COLLECTION
public static final FeatureType ACTION
public static final FeatureType ACTION_PARAMETER
public static final FeatureType OBJECT_POST_PROCESSING
public static final List<FeatureType> COLLECTIONS_ONLY
public static final List<FeatureType> ACTIONS_ONLY
public static final List<FeatureType> PARAMETERS_ONLY
public static final List<FeatureType> PROPERTIES_ONLY
public static final List<FeatureType> OBJECTS_ONLY
public static final List<FeatureType> MEMBERS
public static final List<FeatureType> OBJECTS_AND_PROPERTIES
public static final List<FeatureType> OBJECTS_AND_COLLECTIONS
public static final List<FeatureType> OBJECTS_AND_ACTIONS
public static final List<FeatureType> OBJECTS_PROPERTIES_AND_COLLECTIONS
public static final List<FeatureType> OBJECTS_POST_PROCESSING_ONLY
public static final List<FeatureType> EVERYTHING_BUT_PARAMETERS
FacetFactorys
for different features.public static final List<FeatureType> EVERYTHING
FacetFactorys
for different features.public static FeatureType[] values()
for (FeatureType c : FeatureType.values()) System.out.println(c);
public static FeatureType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic boolean isProperty()
public boolean isCollection()
public boolean isAction()
public boolean isActionParameter()
public boolean isPropertyOrCollection()
public abstract org.apache.isis.applib.Identifier identifierFor(Class<?> type, Method method)
public String toString()
toString in class Enum<FeatureType>Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.