de.intarsys.tools.locator
Class CommonLocator
java.lang.Object
de.intarsys.tools.locator.CommonLocator
- All Implemented Interfaces:
- de.intarsys.tools.component.ISynchronizable, ILocator
- Direct Known Subclasses:
- ByteArrayLocator, ClassLoaderResourceLocator, ClassResourceLocator, FileLocator, LocatorViewport, StreamLocator, StringLocator, TransientLocator
public abstract class CommonLocator
- extends Object
- implements ILocator
Method Summary |
void |
delete()
Delete the artifact referenced by this. |
boolean |
isReadOnly()
true if the specified resource is read only. |
void |
rename(String newName)
Rename the complete physical name to newName . |
void |
setReadOnly()
Make the receiver read only. |
Methods inherited from interface de.intarsys.tools.locator.ILocator |
exists, getChild, getFullName, getInputStream, getLocalName, getOutputStream, getParent, getRandomAccess, getReader, getReader, getType, getTypedName, getWriter, getWriter, isDirectory, listLocators, toURL |
Methods inherited from interface de.intarsys.tools.component.ISynchronizable |
isOutOfSynch, isSynchSynchronous, synch |
CommonLocator
public CommonLocator()
rename
public void rename(String newName)
throws IOException
- Description copied from interface:
ILocator
- Rename the complete physical name to
newName
.
- Specified by:
rename
in interface ILocator
- Parameters:
newName
- The new name of the ILocator
. The new name is
expected to contain both local and type part of the name.
- Throws:
IOException
delete
public void delete()
throws IOException
- Description copied from interface:
ILocator
- Delete the artifact referenced by this.
- Specified by:
delete
in interface ILocator
- Throws:
IOException
setReadOnly
public void setReadOnly()
- Description copied from interface:
ILocator
- Make the receiver read only. This is a one way switch only.
- Specified by:
setReadOnly
in interface ILocator
isReadOnly
public boolean isReadOnly()
- Description copied from interface:
ILocator
true
if the specified resource is read only.
- Specified by:
isReadOnly
in interface ILocator
- Returns:
true
if the specified resource is read only.
Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.