com.inline.feature.example
Class JavaFeatureModel

java.lang.Object
  |
  +--com.inline.feature.common.AbstractFeatureModel
        |
        +--com.inline.feature.example.JavaFeatureModel

public class JavaFeatureModel
extends AbstractFeatureModel


Field Summary
static java.lang.String TYPE
          Model type: value of the FeatureModel.TYPE property
 
Constructor Summary
JavaFeatureModel(com.inline.resources.ResourceRepository repository, com.sun.java.util.collections.Map properties)
           
 
Method Summary
protected  DisplayPropertyFactory getDefaultDisplayPropertyFactory()
          Override to provide a default display property factory.
 Feature getFeature(java.net.URL url)
          Returns the feature for the specified URL.
 java.lang.String getProjectName()
           
 java.lang.Object getProperty(java.lang.String property)
          Returns the value of the specified property.
 Feature getRootFeature()
          Returns the root feature.
 
Methods inherited from class com.inline.feature.common.AbstractFeatureModel
addFeatureActionFactory, addFeatureConstructorFactory, addFeatureFactory, appendVerboseDescription, commit, featureChanged, featureDeleted, featureInserted, getAdditionalActions, getAdditionalFeatureConstructors, getChildFeatureSet, getDisplayProperties, getFeatureService, getResourceAdapter, getResourceRepository, getResourceSetAdapter, isDefaultFeatureConstructor, isFeatureActionEnabled, isFeatureActionFactoryEnabled, isFeatureConstructorEnabled, isFeatureConstructorFactoryEnabled, isFeatureFactoryEnabled, isFeatureRecognitionEnabled, reparse, resourceModified, toString, toStringVerbose
 
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
Model type: value of the FeatureModel.TYPE property
Constructor Detail

JavaFeatureModel

public JavaFeatureModel(com.inline.resources.ResourceRepository repository,
                        com.sun.java.util.collections.Map properties)
Method Detail

getProjectName

public java.lang.String getProjectName()

getRootFeature

public Feature getRootFeature()
Description copied from interface: FeatureModel
Returns the root feature.

getFeature

public Feature getFeature(java.net.URL url)
Description copied from interface: FeatureModel
Returns the feature for the specified URL.

getDefaultDisplayPropertyFactory

protected DisplayPropertyFactory getDefaultDisplayPropertyFactory()
Description copied from class: AbstractFeatureModel
Override to provide a default display property factory. That factory will be used when all other factories fail to provide DisplayProperties for a Displayable object.

The default implementation returns null.

Overrides:
getDefaultDisplayPropertyFactory in class AbstractFeatureModel

getProperty

public java.lang.Object getProperty(java.lang.String property)
Description copied from interface: FeatureModel
Returns the value of the specified property. Used by feature factories, display property factories and can also be used by individual features.