public class PostfixTemplateStorage extends SimpleModificationTracker implements PersistentStateComponent<Element>
EVER_CHANGED, NEVER_CHANGED
Constructor and Description |
---|
PostfixTemplateStorage() |
Modifier and Type | Method and Description |
---|---|
static PostfixTemplateStorage |
getInstance() |
Element |
getState() |
java.util.Set<PostfixTemplate> |
getTemplates(PostfixTemplateProvider provider) |
void |
loadState(Element state)
This method is called when new component state is loaded.
|
void |
setTemplates(PostfixTemplateProvider provider,
java.util.Collection<PostfixTemplate> templates) |
getModificationCount, incModificationCount
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static PostfixTemplateStorage getInstance()
public java.util.Set<PostfixTemplate> getTemplates(PostfixTemplateProvider provider)
public void setTemplates(PostfixTemplateProvider provider, java.util.Collection<PostfixTemplate> templates)
public void loadState(Element state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public Element getState()
getState
in interface PersistentStateComponent<Element>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer