|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inline.feature.ResourceAdapter
Constructor Summary | |
ResourceAdapter(com.inline.resources.ResourceRepository repository,
com.inline.resources.ResourceReference reference)
|
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
commit(int level)
Saves the element to the underlying repository. |
boolean |
doesResourceExist()
Returns true if the resource exists, in the project or outside |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
java.lang.Object |
getResource()
|
com.inline.resources.ResourceReference |
getResourceReference()
|
long |
getTimestamp()
|
void |
initialize(boolean override)
Call this method if you want a completely new element to be created by the subsequent call to updateElement . |
boolean |
isEditable()
Returns true if the element is editable |
protected boolean |
isFileNameSpecified(com.inline.resources.ResourceReference ref)
|
boolean |
isManagedByProject()
|
boolean |
isNew()
Return true if the element has just been created and never been saved. |
protected boolean |
isResourceEditable()
|
void |
postprocess()
Invoked at the end of the Component's updateElements
method to complete the element update process. |
void |
preprocess()
Invoked in the beginning of the Component's updateElements
method to perform necessary management of elements: creation of new ones,
connection to existing ones, etc. |
protected void |
registerListener()
|
void |
remove()
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
reparse()
Call this to refresh information about the element. |
void |
setEditable(boolean editable)
Call this method to change the mutability of the element. |
void |
setGuarded(boolean guarded)
Makes the element temporarily uneditable. |
void |
setManagedByProject(boolean flag)
|
void |
setResourceReference(com.inline.resources.ResourceReference ref)
|
void |
setUpdateExisting(boolean updateExisting)
Enables updating of existing element |
void |
sourceChanged(com.inline.vide.inflect.SourceChangeEvent event)
Called then a SourceChangeEvent occurs on the object being listented to. |
protected void |
unregisterListener()
|
protected void |
updateFlags()
|
boolean |
validate()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ResourceAdapter(com.inline.resources.ResourceRepository repository, com.inline.resources.ResourceReference reference)
Method Detail |
public void setResourceReference(com.inline.resources.ResourceReference ref)
public com.inline.resources.ResourceReference getResourceReference()
public long getTimestamp()
public boolean isEditable()
public void setEditable(boolean editable)
public void setGuarded(boolean guarded)
postprocess
is called. Basically, it protects the element from changes for a single
updateElements
cycle.public void setUpdateExisting(boolean updateExisting)
public boolean isNew()
isNew
method returns false, the feature
must first check for presense of its artifacts in the element.protected boolean isResourceEditable()
public boolean isManagedByProject()
public boolean doesResourceExist()
public boolean validate()
public void setManagedByProject(boolean flag)
public void initialize(boolean override)
updateElement
.
If an old version of the resource exists, it will used as is or
overridden depending on the value of the override parameter.public void reparse()
protected void updateFlags()
public java.lang.Object getResource()
public void remove()
public void commit(int level)
public void preprocess()
updateElements
method to perform necessary management of elements: creation of new ones,
connection to existing ones, etc.protected boolean isFileNameSpecified(com.inline.resources.ResourceReference ref)
public void postprocess()
updateElements
method to complete the element update process.protected void registerListener()
protected void unregisterListener()
public void sourceChanged(com.inline.vide.inflect.SourceChangeEvent event)
event
- The SourceChangeEvent.SourceChangeEvent
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |