org.netbeans.modules.xml.xam
Class ModelAccess

java.lang.Object
  extended by org.netbeans.modules.xml.xam.ModelAccess
Direct Known Subclasses:
DocumentModelAccess

public abstract class ModelAccess
extends java.lang.Object

Access to the underlying structure of the model.

Author:
Nam Nguyen

Constructor Summary
ModelAccess()
           
 
Method Summary
abstract  void addUndoableEditListener(javax.swing.event.UndoableEditListener listener)
           
 long dirtyIntervalMillis()
          Returns length in milliseconds since last edit if the model source buffer is dirty, or 0 if the model source is not dirty.
abstract  void finishUndoRedo()
           
abstract  void flush()
           
 boolean isAutoSync()
           
abstract  void prepareForUndoRedo()
           
 void prepareSync()
           
abstract  void removeUndoableEditListener(javax.swing.event.UndoableEditListener listener)
           
 void setAutoSync(boolean value)
           
abstract  Model.State sync()
           
 void unsetDirty()
          Unset mark for dirty source buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelAccess

public ModelAccess()
Method Detail

addUndoableEditListener

public abstract void addUndoableEditListener(javax.swing.event.UndoableEditListener listener)

removeUndoableEditListener

public abstract void removeUndoableEditListener(javax.swing.event.UndoableEditListener listener)

prepareForUndoRedo

public abstract void prepareForUndoRedo()

finishUndoRedo

public abstract void finishUndoRedo()

prepareSync

public void prepareSync()

sync

public abstract Model.State sync()
                          throws java.io.IOException
Throws:
java.io.IOException

flush

public abstract void flush()

isAutoSync

public boolean isAutoSync()

setAutoSync

public void setAutoSync(boolean value)

dirtyIntervalMillis

public long dirtyIntervalMillis()
Returns length in milliseconds since last edit if the model source buffer is dirty, or 0 if the model source is not dirty. Class of domain model implementations should provide override.


unsetDirty

public void unsetDirty()
Unset mark for dirty source buffer.