public class CopyPattern extends java.lang.Object implements IXmlProvider, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
OVERWRITE_ALLWAYS |
static int |
OVERWRITE_IF_CHANGED |
static java.lang.String |
OVERWRITE_RANGE |
Constructor and Description |
---|
CopyPattern()
Constructor, sets the
id to the long value
representing the actual system time. |
Modifier and Type | Method and Description |
---|---|
CopyPattern |
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 CopyPattern |
fromXML(Element element) |
long |
getId() |
java.lang.String |
getName() |
int |
getOverwrite() |
java.lang.String |
getPattern() |
void |
setName(java.lang.String name) |
void |
setOverwrite(int overwrite) |
void |
setPattern(java.lang.String pattern) |
Element |
toXML()
Serializes the bean into an XML representation.
|
public static final int OVERWRITE_ALLWAYS
public static final int OVERWRITE_IF_CHANGED
public static final java.lang.String OVERWRITE_RANGE
public CopyPattern()
id
to the long value
representing the actual system time.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the copy patternpublic int getOverwrite()
OVERWRITE_*
constants.public void setOverwrite(int overwrite)
overwrite
- The overwrite strategy to be used. Set ONLY one of the
OVERWRITE_*
constants!public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
pattern
- The copy pattern to be used when copying files to the MegaPOV XRS servers.public static CopyPattern 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 long getId()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public CopyPattern clone()
clone
in class java.lang.Object
Object.clone()