|
org.netbeans.modules.xml.xam/1 1.18.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.xml.xam.AbstractModelFactory<M>
public abstract class AbstractModelFactory<M extends Model>
| Field Summary | |
|---|---|
static int |
DELAY_DIRTY
|
static int |
DELAY_SYNCER
|
static String |
MODEL_LOADED_PROPERTY
|
| Constructor Summary | |
|---|---|
AbstractModelFactory()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds property change listener on the factory to be notified on when new models are loaded by the factory. |
M |
createFreshModel(ModelSource modelSource)
Create new model from given model source; returns null if there are errors during creation. |
protected abstract M |
createModel(ModelSource source)
|
static ModelAccessProvider |
getAccessProvider()
|
protected Object |
getKey(ModelSource source)
This method extracts the key from the model source. |
protected M |
getModel(ModelSource source)
|
List<M> |
getModels()
Returns list of models currently cached by the factory. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes property change listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DELAY_SYNCER
public static final int DELAY_DIRTY
public static final String MODEL_LOADED_PROPERTY
| Constructor Detail |
|---|
public AbstractModelFactory()
| Method Detail |
|---|
protected abstract M createModel(ModelSource source)
public M createFreshModel(ModelSource modelSource)
protected Object getKey(ModelSource source)
public static ModelAccessProvider getAccessProvider()
protected M getModel(ModelSource source)
public List<M> getModels()
public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
|
org.netbeans.modules.xml.xam/1 1.18.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||