com.inline.feature.example
Class JavaFileFeature

java.lang.Object
  |
  +--com.inline.feature.common.AbstractResourceListener
        |
        +--com.inline.feature.common.AbstractFeature
              |
              +--com.inline.feature.example.JavaFileFeature

public class JavaFileFeature
extends AbstractFeature


Field Summary
protected  java.lang.String fileName
           
protected  ResourceAdapter sourceDocumentAdapter
           
static java.lang.String TYPE
           
 
Fields inherited from class com.inline.feature.common.AbstractResourceListener
active, featureModel, parent, resourceAdapters, resourceSetAdapters, revalidate
 
Constructor Summary
JavaFileFeature(Feature parent, java.lang.String signature)
           
 
Method Summary
static java.lang.String constructSignature(Feature parent, java.lang.String fileName)
           
 java.lang.String getFileName()
           
 com.inline.vide.SourceDocument getSourceDocument()
           
 ResourceAdapter getSourceDocumentAdapter()
           
 java.lang.String getType()
          Returns the feature type.
 java.lang.String getUnqualifiedFileName()
           
 void parseSignature(java.lang.String signature)
          Override this to extract some of the feature properties from the signature.
 
Methods inherited from class com.inline.feature.common.AbstractFeature
activate, addManagedProperty, addMessages, addPropertyChangeListener, applyChanges, canChange, canDelete, commit, delete, firePropertyChange, firePropertyChange, getActions, getChildren, getChildSetActions, getDisplayProperties, getDisplayType, getMessages, getPrimitiveActions, getSignature, getURL, insert, invalidate, isMarkedForDeletion, isModified, isModified, isNew, markForDeletion, propertyChanged, refresh, refresh, refreshProperties, refreshProperty, release, removePropertyChangeListener, toString, toStringVerbose, validateChanges, validateChanges
 
Methods inherited from class com.inline.feature.common.AbstractResourceListener
getFeatureModel, getParent, passivate, propertyChange, registerDependencies, registerResourceAdapter, registerResourceAdapter, registerResourceSetAdapter, registerResourceSetAdapter, resourceAdded, resourceChanged, resourceRemoved, unregisterResourceAdapter, unregisterResourceSetAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE

fileName

protected java.lang.String fileName

sourceDocumentAdapter

protected ResourceAdapter sourceDocumentAdapter
Constructor Detail

JavaFileFeature

public JavaFileFeature(Feature parent,
                       java.lang.String signature)
Method Detail

getType

public java.lang.String getType()
Description copied from interface: Feature
Returns the feature type.

The recommended type declaration syntax is:

      class MyFeature ... {
          public static final String TYPE = "foo-bar-myfeature";
          public String getType() { return TYPE; }
          ...
      }
  

constructSignature

public static java.lang.String constructSignature(Feature parent,
                                                  java.lang.String fileName)

parseSignature

public void parseSignature(java.lang.String signature)
Description copied from class: AbstractFeature
Override this to extract some of the feature properties from the signature. If the signature is not carrying any of those properties, there is no need to override this method.
Overrides:
parseSignature in class AbstractFeature

getFileName

public java.lang.String getFileName()

getUnqualifiedFileName

public java.lang.String getUnqualifiedFileName()

getSourceDocumentAdapter

public ResourceAdapter getSourceDocumentAdapter()

getSourceDocument

public com.inline.vide.SourceDocument getSourceDocument()