public class RenamedLocator extends ImmutableDelegatingLocator
| Constructor and Description |
|---|
RenamedLocator(ILocator delegate) |
RenamedLocator(ILocator delegate,
String fullName) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFullName()
The full physical name of this.
|
String |
getLocalName()
The local name of the receiver within its parent.
|
String |
getTypedName()
The qualified local name of the receiver within its parent that includes
the type specification for the destination if appropriate.
|
void |
rename(String newName)
Rename the complete physical name to
newName. |
delete, exists, getAdapter, getChild, getInputStream, getLength, getOutputStream, getParent, getRandomAccess, getReader, getReader, getType, getWriter, getWriter, isDirectory, isOutOfSynch, isReadOnly, listLocators, setReadOnly, synch, toURLpublic RenamedLocator(ILocator delegate)
public String getFullName()
ILocatorThis method returns a representation that is proprietary to the underlying physical representation, for example a file name, a SQL statement or so on.
getFullName in interface ILocatorgetFullName in class DelegatingLocatorpublic String getLocalName()
ILocatorgetLocalName in interface ILocatorgetLocalName in class DelegatingLocatorpublic String getTypedName()
ILocatorgetTypedName in interface ILocatorgetTypedName in class DelegatingLocatorpublic void rename(String newName) throws IOException
ILocatornewName.rename in interface ILocatorrename in class DelegatingLocatornewName - The new name of the ILocator. The new name is expected
to contain both local and type part of the name.IOExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.