public class ServerLocation extends java.lang.Object implements IXmlProvider, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
PROTOCOL_FILE |
static int |
PROTOCOL_FTP |
static int |
PROTOCOL_SMB |
Constructor and Description |
---|
ServerLocation()
Constructor, sets the
id to the long value
representing the actual system time. |
Modifier and Type | Method and Description |
---|---|
ServerLocation |
clone() |
boolean |
equals(java.lang.Object obj) |
void |
fromXml(Element element)
Deserializes the given
JDOM Element adn stores it's content in the bean. |
static ServerLocation |
fromXML(Element element) |
java.lang.String |
getDomain() |
java.lang.String |
getErrorMessage() |
long |
getId() |
java.lang.String |
getLocationName() |
java.lang.String |
getPassword() |
java.lang.String |
getPath() |
int |
getProtocol() |
java.lang.String |
getProtocolName() |
java.lang.String |
getServerName() |
java.lang.String |
getServerNameAndPath() |
java.lang.String |
getUrlString() |
java.lang.String |
getUserName() |
boolean |
isAnonymous() |
boolean |
isFileProtocol() |
boolean |
isFtpProtocol() |
boolean |
isSmpProtocol() |
void |
setAnonymous(boolean anonymous) |
void |
setDomain(java.lang.String domain) |
void |
setErrorMessage(java.lang.String errorMessage) |
void |
setLocationName(java.lang.String name) |
void |
setPassword(java.lang.String password) |
void |
setPath(java.lang.String path) |
void |
setProtocol(int protocol) |
void |
setServerName(java.lang.String name) |
void |
setUserName(java.lang.String userName) |
Element |
toXML()
Serializes the bean into an XML representation.
|
public static final int PROTOCOL_FILE
public static final int PROTOCOL_FTP
public static final int PROTOCOL_SMB
public ServerLocation()
id
to the long value
representing the actual system time.public static ServerLocation fromXML(Element element) throws PovClipsePreferenceException
element
- A JDOM Element
representing the data of this bean.Element
values.PovClipsePreferenceException
- If the element could be be parsed.public void fromXml(Element element) throws PovClipsePreferenceException
IXmlProvider
JDOM Element
adn stores it's content in the bean.fromXml
in interface IXmlProvider
element
- A JDOM Element
whos data is to be used.PovClipsePreferenceException
- if the given JDOM Element
could not be parsed.com.wm.povclipse.property.megapovxrs.IXmlProvider#fromXml(org.jdom.Element)
public Element toXML()
IXmlProvider
toXML
in interface IXmlProvider
JDOM Element
representing the bean. This Element
can be used to deserialize the XML using the method
fromXml(Element element)
.com.wm.povclipse.property.megapovxrs.IXmlProvider#toXML()
public boolean isAnonymous()
true
if the access is anonymous, false
otherwise.public void setAnonymous(boolean anonymous)
anonymous
- true
if the access is anonymous, false
otherwise.public java.lang.String getServerName()
public void setServerName(java.lang.String name)
name
- The name of the server (optionally including the port)public java.lang.String getLocationName()
public void setLocationName(java.lang.String name)
name
- The name to be used for this server location.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- The password to be used when accessing the server.public int getProtocol()
public java.lang.String getProtocolName()
public void setProtocol(int protocol)
protocol
- sets the protocol.public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName
- The user name to be used when accessing the server.public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The path at the server to copy the files into.public java.lang.String getServerNameAndPath()
public long getId()
id
of this server location.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String getUrlString()
"nfs://hostname/directory1"
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String errorMessage)
errorMessage
- If sources could not be copied to this server use this
method to set the server's error message.public boolean isFileProtocol()
public boolean isSmpProtocol()
public boolean isFtpProtocol()
public java.lang.String getDomain()
public void setDomain(java.lang.String domain)
public ServerLocation clone()
clone
in class java.lang.Object
Object.clone()