Package gov.nih.mipav.model.file
Class FileDicomSQItem
- java.lang.Object
-
- gov.nih.mipav.model.file.FileDicomTagTable
-
- gov.nih.mipav.model.file.FileDicomSQItem
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class FileDicomSQItem extends FileDicomTagTable
A table containing dicom tags. Common tags are not stored here and instead should be stored in the reference tag table. The reference tag table may refer to another table within a dicom sequence.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
writeAsUnknownLength
Whether the sequence should be written using an unknown length-
Fields inherited from class gov.nih.mipav.model.file.FileDicomTagTable
childTagTables, isReferenceTagTable, parentFileInfo, referenceTagTable, tagTable, vr_type
-
-
Constructor Summary
Constructors Constructor Description FileDicomSQItem(FileInfoDicom parent, FileDicomTagTable firstSliceTags, FileInfoDicom.VRtype vr_type)
FileDicomSQItem(FileInfoDicom parent, FileInfoDicom.VRtype vr_type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doWriteAsUnknownLength()
Whether the sequence should be written using an unknown length, can be set as a preference by user.java.util.Collection<FileDicomTag>
getSequenceValues()
Return the tag values store in this sequence tag.int
getWritableLength(boolean includeTagInfo)
Gets the length as read in by the header (possibly undefined).void
setWriteAsUnknownLength(boolean writeAsUnknownLength)
Whether the sequence should be written using an unknown length, this includes adding a sequence delimitation item to the sequence.-
Methods inherited from class gov.nih.mipav.model.file.FileDicomTagTable
attachChildTagTables, clone, containsTag, containsTag, containsUniqueTag, containsUniqueTag, finalize, get, get, getDataLength, getNumberOfElements, getReferenceTagTable, getSeqTagList, getTagList, getTagListCopy, getTagListUnique, getValue, getValue, getValue, getValue, getVr_type, importTags, isReferenceTagTable, isTagSameAsReferenceTag, put, putPrivateTagValue, removeTag, removeTag, reset, setLength, setLength, setValue, setValue, setValue, setValue, setValue, setVr_type, sortTagsList, sortTagsList, toString
-
-
-
-
Constructor Detail
-
FileDicomSQItem
public FileDicomSQItem(FileInfoDicom parent, FileInfoDicom.VRtype vr_type)
-
FileDicomSQItem
public FileDicomSQItem(FileInfoDicom parent, FileDicomTagTable firstSliceTags, FileInfoDicom.VRtype vr_type)
-
-
Method Detail
-
doWriteAsUnknownLength
public boolean doWriteAsUnknownLength()
Whether the sequence should be written using an unknown length, can be set as a preference by user.
-
setWriteAsUnknownLength
public void setWriteAsUnknownLength(boolean writeAsUnknownLength)
Whether the sequence should be written using an unknown length, this includes adding a sequence delimitation item to the sequence.
-
getWritableLength
public final int getWritableLength(boolean includeTagInfo)
Gets the length as read in by the header (possibly undefined).- Returns:
- The length of the sequence as read in by the header
-
getSequenceValues
public java.util.Collection<FileDicomTag> getSequenceValues()
Return the tag values store in this sequence tag. Does not return tags from the reference tag table.- Returns:
- A list of dicom tags contained in this sequence tag.
-
-