public class SampledField extends AbstractSpatialNamedSBase
JSBML_WRONG_SBO_TERM| Constructor and Description |
|---|
SampledField() |
SampledField(int level,
int version) |
SampledField(SampledField sf) |
SampledField(java.lang.String id,
int level,
int version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
append(java.lang.String data)
Appends the variable data to samples.
|
SampledField |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same
properties
like this one. |
boolean |
equals(java.lang.Object object)
|
boolean |
getAllowsChildren() |
javax.swing.tree.TreeNode |
getChildAt(int index) |
int |
getChildCount() |
CompressionKind |
getCompression()
Returns the value of compression
|
XMLNode |
getData()
Returns the value of data
|
java.lang.String |
getDataString()
Returns the value of data
|
DataKind |
getDataType()
Returns the value of dataType
|
InterpolationKind |
getInterpolation()
Returns the value of interpolation type
|
InterpolationKind |
getInterpolationType()
Returns the value of interpolation type
|
int |
getNumSamples1()
Returns the value of numSamples1
|
int |
getNumSamples2()
Returns the value of numSamples2
|
int |
getNumSamples3()
Returns the value of numSamples3
|
java.lang.String |
getSamples()
Returns the value of
samples. |
int |
getSamplesLength()
Returns the value of
samplesLength. |
int |
hashCode()
Returns a hash code value for this
SBase instance. |
boolean |
isSetCompression()
Returns whether compression is set
|
boolean |
isSetData()
Returns whether data is set
|
boolean |
isSetDataType()
Returns whether dataType is set
|
boolean |
isSetInterpolation()
Returns whether interpolation type is set
|
boolean |
isSetInterpolationType()
Returns whether interpolation type is set
|
boolean |
isSetNumSamples1()
Returns whether numSamples1 is set
|
boolean |
isSetNumSamples2()
Returns whether numSamples2 is set
|
boolean |
isSetNumSamples3()
Returns whether numSamples3 is set
|
boolean |
isSetSamples()
Returns whether
samples is set. |
boolean |
isSetSamplesLength()
Returns whether
samplesLength is set. |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Sets the given attribute in this
SBase. |
void |
setCompression(CompressionKind compression)
Sets the value of compression
|
void |
setData(java.lang.String data)
Sets the value of data
|
void |
setData(XMLNode data)
Sets the value of data
|
void |
setDataType(DataKind dataType)
Sets the value of dataType
|
void |
setInterpolation(InterpolationKind interpolation)
Sets the value of interpolation type
|
void |
setInterpolationType(InterpolationKind interpolation)
Sets the value of interpolation type
|
void |
setNumSamples1(int numSamples1)
Sets the value of numSamples1
|
void |
setNumSamples2(int numSamples2)
Sets the value of numSamples2
|
void |
setNumSamples3(int numSamples3)
Sets the value of numSamples3
|
void |
setSamples(java.lang.String samples)
Sets the value of samples
|
void |
setSamplesLength(int samplesLength)
Sets the value of samplesLength
|
void |
setSamplesLength(java.lang.String samplesLength)
Sets the value of samplesLength
|
boolean |
unsetCompression()
Unsets the variable compression
|
boolean |
unsetData()
Unsets the variable data
|
boolean |
unsetDataType()
Unsets the variable dataType
|
boolean |
unsetInterpolation()
Unsets the variable interpolation type
|
boolean |
unsetInterpolationType()
Unsets the variable interpolation type
|
boolean |
unsetNumSamples1()
Unsets the variable numSamples1
|
boolean |
unsetNumSamples2()
Unsets the variable numSamples2
|
boolean |
unsetNumSamples3()
Unsets the variable numSamples3
|
boolean |
unsetSamples()
Unsets the variable samples.
|
boolean |
unsetSamplesLength()
Unsets the variable samplesLength.
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a map with all the attributes of this
SBase that
need to be written out in XML. |
getSpatialId, initDefaults, isSetSpatialId, setSpatialId, unsetSpatialIdaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, getHistory, getId, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetgetId, getName, isIdMandatory, isSetId, isSetName, setId, setName, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTreeNodeChangeListener, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic SampledField()
public SampledField(SampledField sf)
sf - public SampledField(int level,
int version)
level - version - public SampledField(java.lang.String id,
int level,
int version)
id - level - version - public SampledField clone()
SBaseSBase with the same
properties
like this one.clone in interface SBaseclone in class AbstractSpatialNamedSBasepublic boolean equals(java.lang.Object object)
SBasepublic int getNumSamples1()
public boolean isSetNumSamples1()
public void setNumSamples1(int numSamples1)
numSamples1 - public boolean unsetNumSamples1()
true, if numSamples1 was set before,
otherwise falsepublic int getNumSamples2()
public boolean isSetNumSamples2()
public void setNumSamples2(int numSamples2)
numSamples2 - public boolean unsetNumSamples2()
true, if numSamples2 was set before,
otherwise falsepublic int getNumSamples3()
public boolean isSetNumSamples3()
public void setNumSamples3(int numSamples3)
numSamples3 - public boolean unsetNumSamples3()
true, if numSamples3 was set before,
otherwise falsepublic DataKind getDataType()
public boolean isSetDataType()
public void setDataType(DataKind dataType)
dataType - public boolean unsetDataType()
true, if dataType was set before,
otherwise falsepublic CompressionKind getCompression()
public boolean isSetCompression()
public void setCompression(CompressionKind compression)
compression - public boolean unsetCompression()
true, if compression was set before,
otherwise falsepublic InterpolationKind getInterpolationType()
public InterpolationKind getInterpolation()
getInterpolationType()public boolean isSetInterpolation()
isSetInterpolationType()public boolean isSetInterpolationType()
public void setInterpolation(InterpolationKind interpolation)
interpolation - the value of interpolation typesetInterpolationType(InterpolationKind)public void setInterpolationType(InterpolationKind interpolation)
interpolation - the value of interpolation typepublic boolean unsetInterpolation()
true, if interpolation type was set before,
otherwise falseunsetInterpolationType()public boolean unsetInterpolationType()
true, if interpolation type was set before,
otherwise falsepublic java.lang.String getSamples()
samples.samples.public boolean isSetSamples()
samples is set.samples is set.public void setSamples(java.lang.String samples)
samples - the value of samples to be set.public boolean unsetSamples()
true if samples was set before, otherwise false.public boolean append(java.lang.String data)
true if data was appended to samples, otherwise false.public int getSamplesLength()
samplesLength.samplesLength.public boolean isSetSamplesLength()
samplesLength is set.samplesLength is set.public void setSamplesLength(java.lang.String samplesLength)
samplesLength - the value of samplesLength to be set.public void setSamplesLength(int samplesLength)
samplesLength - the value of samplesLength to be set.public boolean unsetSamplesLength()
true if samplesLength was set before, otherwise false.public java.lang.String getDataString()
public XMLNode getData()
public boolean isSetData()
public void setData(java.lang.String data)
throws javax.xml.stream.XMLStreamException
data - javax.xml.stream.XMLStreamExceptionpublic void setData(XMLNode data)
data - public boolean unsetData()
true, if data was set before,
otherwise falsepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodegetAllowsChildren in class AbstractSpatialNamedSBasepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodegetChildCount in class AbstractSpatialNamedSBasepublic javax.swing.tree.TreeNode getChildAt(int index)
getChildAt in interface javax.swing.tree.TreeNodegetChildAt in class AbstractSpatialNamedSBasepublic int hashCode()
SBaseSBase instance.hashCode in interface SBasehashCode in class AbstractSpatialNamedSBaseSBase instance.Object.hashCode()public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBaseSBase that
need to be written out in XML.
The attribute name is used as a key and the attribute value as value. If a prefix is needed for the attribute name, it need to be set directly in this map.
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSpatialNamedSBaseMap containing the XML attributes of this object.public boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
SBaseSBase.
If the given attribute name is not recognized, nothing is done and
false is returned.
readAttribute in interface SBasereadAttribute in class AbstractSBaseattributeName - localName of the XML attributeprefix - prefix of the XML attributevalue - value of the XML attributetrue if the attribute has been successfully read.