|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
FeatureConstructorFactories produce FeatureConstructors for child FeatureSets of Features. Factories of all types are registered in the ResourceFactory for the product or a plug-in.
There are two types features constructors:
FeatureSet.getFeatureConstructors()
returns a combination
of both types.
Only the primitive feature constructors can allocate features directly. Add-on constructors must use other constructors to allocate features.
FeatureService.getFeatureConstructorFactories()
Field Summary | |
static java.lang.String |
TYPE
Resource type for instances of FeatureFactory |
Method Summary | |
com.sun.java.util.collections.Set |
getFeatureConstructors(Feature parent,
java.lang.String type)
Returns a Set object which recognizes subfeatures on the supplied parent feature. |
com.sun.java.util.collections.Set |
getParentFeatureTypes(FeatureModel model,
java.lang.String type)
This factory can only create subfeatures for the feature types returned by this method. |
com.sun.java.util.collections.Set |
getSupportedFeatureTypes(FeatureModel model)
A factory is associated with one or more feature types within the scope of every feature model. |
boolean |
isEnabled(Feature parent,
java.lang.String childType)
Should return true if the factory is suited to create children on this particular parent. |
Field Detail |
public static final java.lang.String TYPE
Method Detail |
public com.sun.java.util.collections.Set getSupportedFeatureTypes(FeatureModel model)
public com.sun.java.util.collections.Set getParentFeatureTypes(FeatureModel model, java.lang.String type)
public boolean isEnabled(Feature parent, java.lang.String childType)
Note that the Feature will cache feature constructors, so the
decision about applicability of the particular constuctor based on dynamically
changing properties of the feature should be deferred to
FeatureConstructor.isEnabled()
.
public com.sun.java.util.collections.Set getFeatureConstructors(Feature parent, java.lang.String type)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |