public class CpeCheckpointImpl extends MetaDataObject_impl implements CpeCheckpoint
Constructor and Description |
---|
CpeCheckpointImpl() |
Modifier and Type | Method and Description |
---|---|
void |
buildFromXMLElement(org.w3c.dom.Element aElement,
XMLParser aParser,
XMLParser.ParsingOptions aOptions)
Overridden to read Checkpoint attributes.
|
int |
getBatch() |
int |
getBatchSize() |
java.lang.String |
getFile() |
java.lang.String |
getFilePath()
Returns file where checkpoint information is stored
|
int |
getFrequency()
Returns frequency of checkpoints.
|
java.lang.String |
getTime() |
protected org.xml.sax.helpers.AttributesImpl |
getXMLAttributes()
Overridden to handle Checkpoint attributes.
|
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object
in XML.
|
boolean |
isTimeBased()
Returns true if frequency of checkpoints is time-based
|
void |
setBatch(int i) |
void |
setBatchSize(int aBatchSize) |
void |
setFile(java.lang.String string) |
void |
setFilePath(java.lang.String aCheckpointFilePath)
Sets the file where checkpoint information will be stored
|
void |
setFrequency(int aFrequency,
boolean aTimeBased)
Sets frequency of checkpoints.
|
void |
setTime(java.lang.String i) |
buildFromXMLElement, clone, equals, getAttributeClass, getAttributeValue, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSourceUrl, getSourceUrlString, getWrapperClass, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, setAttributeValue, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElement
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
public void setFilePath(java.lang.String aCheckpointFilePath) throws CpeDescriptorException
CpeCheckpoint
setFilePath
in interface CpeCheckpoint
aCheckpointFilePath
- -
checkpoint file pathCpeDescriptorException
public java.lang.String getFilePath()
CpeCheckpoint
getFilePath
in interface CpeCheckpoint
public void setFrequency(int aFrequency, boolean aTimeBased)
CpeCheckpoint
setFrequency
in interface CpeCheckpoint
aFrequency
- -
number of millis between checkpointsaTimeBased
- -
true if checkpoint is based on timepublic int getFrequency()
CpeCheckpoint
getFrequency
in interface CpeCheckpoint
public boolean isTimeBased()
CpeCheckpoint
isTimeBased
in interface CpeCheckpoint
public void setBatchSize(int aBatchSize)
setBatchSize
in interface CpeCheckpoint
public int getBatchSize()
getBatchSize
in interface CpeCheckpoint
public void buildFromXMLElement(org.w3c.dom.Element aElement, XMLParser aParser, XMLParser.ParsingOptions aOptions) throws InvalidXMLException
buildFromXMLElement
in interface XMLizable
buildFromXMLElement
in class MetaDataObject_impl
aElement
- the XML element that represents this object.aParser
- a reference to the UIMA XMLParser
. The
XMLParser.buildObject(Element)
method can be used to construct sub-objects.aOptions
- option settingsInvalidXMLException
- if the input XML element does not specify a valid objectMetaDataObject_impl.buildFromXMLElement(org.w3c.dom.Element,
org.apache.uima.util.XMLParser, org.apache.uima.util.XMLParser.ParsingOptions)
protected org.xml.sax.helpers.AttributesImpl getXMLAttributes()
getXMLAttributes
in class MetaDataObject_impl
MetaDataObject_impl.getXMLAttributes()
protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo
in class MetaDataObject_impl
public int getBatch()
public java.lang.String getFile()
public java.lang.String getTime()
public void setBatch(int i)
i
- public void setFile(java.lang.String string)
string
- public void setTime(java.lang.String i)
i
- Copyright © 2013. All Rights Reserved.