org.sbml.jsbml.ext.spatial
public class SampledField extends AbstractSpatialNamedSBase
Modifier and Type | Class and Description |
---|---|
static class |
SampledField.CompressionKind |
static class |
SampledField.DataKind |
static class |
SampledField.InterpolationKind |
Modifier and Type | Field and Description |
---|---|
private SampledField.CompressionKind |
compression |
private XMLNode |
data |
private SampledField.DataKind |
dataType |
private SampledField.InterpolationKind |
interpolation |
private java.lang.Integer |
numSamples1 |
private java.lang.Integer |
numSamples2 |
private java.lang.Integer |
numSamples3 |
private static long |
serialVersionUID
Generated serial version identifier.
|
spatialId
ignoredExtensions, ignoredXMLElements
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
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 |
---|---|
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() |
SampledField.CompressionKind |
getCompression()
Returns the value of compression
|
XMLNode |
getData()
Returns the value of data
|
java.lang.String |
getDataString()
Returns the value of data
|
SampledField.DataKind |
getDataType()
Returns the value of dataType
|
SampledField.InterpolationKind |
getInterpolation()
Returns the value of interpolation
|
int |
getNumSamples1()
Returns the value of numSamples1
|
int |
getNumSamples2()
Returns the value of numSamples2
|
int |
getNumSamples3()
Returns the value of numSamples3
|
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 is set
|
boolean |
isSetNumSamples1()
Returns whether numSamples1 is set
|
boolean |
isSetNumSamples2()
Returns whether numSamples2 is set
|
boolean |
isSetNumSamples3()
Returns whether numSamples3 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(SampledField.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(SampledField.DataKind dataType)
Sets the value of dataType
|
void |
setInterpolation(SampledField.InterpolationKind interpolation)
Sets the value of interpolation
|
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
|
java.lang.String |
toString() |
boolean |
unsetCompression()
Unsets the variable compression
|
boolean |
unsetData()
Unsets the variable data
|
boolean |
unsetDataType()
Unsets the variable dataType
|
boolean |
unsetInterpolation()
Unsets the variable interpolation
|
boolean |
unsetNumSamples1()
Unsets the variable numSamples1
|
boolean |
unsetNumSamples2()
Unsets the variable numSamples2
|
boolean |
unsetNumSamples3()
Unsets the variable numSamples3
|
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, isSetSpatialId, setSpatialId, unsetSpatialId
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm
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
finalize, getClass, notify, notifyAll, wait, wait, wait
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, 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
private static final long serialVersionUID
private SampledField.DataKind dataType
private java.lang.Integer numSamples1
private java.lang.Integer numSamples2
private java.lang.Integer numSamples3
private SampledField.InterpolationKind interpolation
private SampledField.CompressionKind compression
private XMLNode data
public SampledField()
public SampledField(SampledField sf)
node
- 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 AbstractSBase
public boolean equals(java.lang.Object object)
SBase
public int getNumSamples1()
public boolean isSetNumSamples1()
public void setNumSamples1(int numSamples1)
public boolean unsetNumSamples1()
true
, if numSamples1 was set before,
otherwise false
public int getNumSamples2()
public boolean isSetNumSamples2()
public void setNumSamples2(int numSamples2)
public boolean unsetNumSamples2()
true
, if numSamples2 was set before,
otherwise false
public int getNumSamples3()
public boolean isSetNumSamples3()
public void setNumSamples3(int numSamples3)
public boolean unsetNumSamples3()
true
, if numSamples3 was set before,
otherwise false
public SampledField.DataKind getDataType()
public boolean isSetDataType()
public void setDataType(SampledField.DataKind dataType)
public boolean unsetDataType()
true
, if dataType was set before,
otherwise false
public SampledField.CompressionKind getCompression()
public boolean isSetCompression()
public void setCompression(SampledField.CompressionKind compression)
public boolean unsetCompression()
true
, if compression was set before,
otherwise false
public SampledField.InterpolationKind getInterpolation()
public boolean isSetInterpolation()
public void setInterpolation(SampledField.InterpolationKind interpolation)
public boolean unsetInterpolation()
true
, if interpolation 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
javax.xml.stream.XMLStreamException
public void setData(XMLNode 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 AbstractSpatialNamedSBase
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.public java.lang.String toString()
toString
in class AbstractSpatialNamedSBase