com.inline.feature.example
Class JavaFileFeatureSet

java.lang.Object
  |
  +--com.inline.feature.common.AbstractResourceListener
        |
        +--com.inline.feature.common.AbstractFeatureSet
              |
              +--com.inline.feature.common.AbstractTypedFeatureSet
                    |
                    +--com.inline.feature.example.JavaFileFeatureSet

public class JavaFileFeatureSet
extends AbstractTypedFeatureSet


Field Summary
protected  ResourceSetAdapter sourceDocumentSetAdapter
           
 
Fields inherited from class com.inline.feature.common.AbstractTypedFeatureSet
type
 
Fields inherited from class com.inline.feature.common.AbstractResourceListener
active, featureModel, parent, resourceAdapters, resourceSetAdapters, revalidate
 
Constructor Summary
JavaFileFeatureSet(Feature parent, java.lang.String type)
           
 
Method Summary
 Feature allocateFeature(java.lang.String signature)
          Override this method to allocate an instance of a Feature of the set's type.
 com.sun.java.util.collections.Set getFeatureSignatures()
          Override this method to perform parsing of resources and build a set of signatures of all Features of the set's type found on the set's parent Feature.
protected  void registerDependencies()
          Override to register all resource adapters this feature set depends upon.
 void resourceAdded(ResourceSetAdapter source, com.inline.resources.ResourceReference ref)
          Event handler for resource set adapters.
 void resourceRemoved(ResourceSetAdapter source, com.inline.resources.ResourceReference ref)
          Event handler for resource set adapters.
 
Methods inherited from class com.inline.feature.common.AbstractTypedFeatureSet
activate, allocateFeature, canChangeSet, featureAdded, featureRemoved, featureReplaced, getFeature, getFeatureConstructors, getFeatures, getFeatures, getPrimitiveFeatureConstructors, getSortedFeatures, getType, insert, isDefaultPrimitiveFeatureConstructorAllowed, isEmpty, refresh, release, removeAll, resourceChanged, toString
 
Methods inherited from class com.inline.feature.common.AbstractFeatureSet
addFeatureSetListener, fireFeatureAdded, fireFeatureRemoved, fireFeatureReplaced, getDefaultFeatureConstructor, getFeatureConstructor, getFeatureConstructors, removeFeatureSetListener, shouldCheckHasChildren
 
Methods inherited from class com.inline.feature.common.AbstractResourceListener
getFeatureModel, getParent, invalidate, passivate, propertyChange, registerResourceAdapter, registerResourceAdapter, registerResourceSetAdapter, registerResourceSetAdapter, unregisterResourceAdapter, unregisterResourceSetAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sourceDocumentSetAdapter

protected ResourceSetAdapter sourceDocumentSetAdapter
Constructor Detail

JavaFileFeatureSet

public JavaFileFeatureSet(Feature parent,
                          java.lang.String type)
Method Detail

registerDependencies

protected void registerDependencies()
Description copied from class: AbstractResourceListener
Override to register all resource adapters this feature set depends upon. Call registerResourceAdapter(reference) for each resource adapter and registerResourceSetAdapter(type, qualifier) for each resource set adapter. AbstractResourceListener will make the feature an observer of events from those adapters as needed.
Overrides:
registerDependencies in class AbstractResourceListener

getFeatureSignatures

public com.sun.java.util.collections.Set getFeatureSignatures()
Description copied from class: AbstractTypedFeatureSet
Override this method to perform parsing of resources and build a set of signatures of all Features of the set's type found on the set's parent Feature.
Overrides:
getFeatureSignatures in class AbstractTypedFeatureSet

allocateFeature

public Feature allocateFeature(java.lang.String signature)
Description copied from class: AbstractTypedFeatureSet
Override this method to allocate an instance of a Feature of the set's type.
Overrides:
allocateFeature in class AbstractTypedFeatureSet

resourceAdded

public void resourceAdded(ResourceSetAdapter source,
                          com.inline.resources.ResourceReference ref)
Description copied from class: AbstractResourceListener
Event handler for resource set adapters. Calls this.invalidate().
Overrides:
resourceAdded in class AbstractTypedFeatureSet

resourceRemoved

public void resourceRemoved(ResourceSetAdapter source,
                            com.inline.resources.ResourceReference ref)
Description copied from class: AbstractResourceListener
Event handler for resource set adapters. Calls this.invalidate().
Overrides:
resourceRemoved in class AbstractTypedFeatureSet