java.io.Serializable
, java.lang.Cloneable
, javax.swing.tree.TreeNode
, SpatialNamedSBase
, NamedSBase
, SBase
, TreeNodeWithChangeSupport
public class SampledField extends AbstractSpatialNamedSBase
JSBML_WRONG_SBO_TERM
Constructor | Description |
---|---|
SampledField() |
|
SampledField(int level,
int version) |
|
SampledField(java.lang.String id,
int level,
int version) |
|
SampledField(SampledField sf) |
Modifier and Type | Method | 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. |
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, addResources, 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, hasExtension, 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, unsetSBOTerm
getSpatialId, initDefaults, isSetSpatialId, setSpatialId, unsetSpatialId
addAllChangeListeners, 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, userObjectKeySet
getId, getName, isIdMandatory, isSetId, isSetName, setId, setName, unsetId, unsetName
addCVTerm, 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, hasExtension, 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, unsetSBOTerm
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
public 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()
SBase
SBase
with the same
properties
like this one.clone
in interface SBase
clone
in class AbstractSpatialNamedSBase
public boolean equals(java.lang.Object object)
SBase
public int getNumSamples1()
public boolean isSetNumSamples1()
public void setNumSamples1(int numSamples1)
numSamples1
- public boolean unsetNumSamples1()
true
, if numSamples1 was set before,
otherwise false
public int getNumSamples2()
public boolean isSetNumSamples2()
public void setNumSamples2(int numSamples2)
numSamples2
- public boolean unsetNumSamples2()
true
, if numSamples2 was set before,
otherwise false
public int getNumSamples3()
public boolean isSetNumSamples3()
public void setNumSamples3(int numSamples3)
numSamples3
- public boolean unsetNumSamples3()
true
, if numSamples3 was set before,
otherwise false
public DataKind getDataType()
public boolean isSetDataType()
public void setDataType(DataKind dataType)
dataType
- public boolean unsetDataType()
true
, if dataType was set before,
otherwise false
public CompressionKind getCompression()
public boolean isSetCompression()
public void setCompression(CompressionKind compression)
compression
- public boolean unsetCompression()
true
, if compression was set before,
otherwise false
public 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 false
unsetInterpolationType()
public boolean unsetInterpolationType()
true
, if interpolation type was set before,
otherwise false
public 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.XMLStreamException
public void setData(XMLNode data)
data
- public boolean unsetData()
true
, if data was set before,
otherwise false
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class AbstractSpatialNamedSBase
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class AbstractSpatialNamedSBase
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class AbstractSpatialNamedSBase
public int hashCode()
SBase
SBase
instance.hashCode
in interface SBase
hashCode
in class AbstractSpatialNamedSBase
SBase
instance.Object.hashCode()
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBase
SBase
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 SBase
writeXMLAttributes
in class AbstractSpatialNamedSBase
Map
containing the XML attributes of this object.public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBase
SBase
.
If the given attribute name is not recognized, nothing is done and
false
is returned.
readAttribute
in interface SBase
readAttribute
in class AbstractSBase
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.