|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.collection.impl.metadata.cpe.CpeCheckpointImpl
public class CpeCheckpointImpl
Constructor Summary | |
---|---|
CpeCheckpointImpl()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl |
---|
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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject |
---|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl |
Methods inherited from interface org.apache.uima.util.XMLizable |
---|
buildFromXMLElement, toXML, toXML, toXML, toXML |
Constructor Detail |
---|
public CpeCheckpointImpl()
Method Detail |
---|
public void setFilePath(java.lang.String aCheckpointFilePath) throws CpeDescriptorException
CpeCheckpoint
setFilePath
in interface CpeCheckpoint
aCheckpointFilePath
- -
checkpoint file path
CpeDescriptorException
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 settings
InvalidXMLException
- 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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |