public class ContentItemFactory extends Object
A class with methods for constructing a ContentItem
of the appropriate class from a list of attributes.
The sub-classes of ContentItem
are public internal classes of this class,
but specialize the methods, specifically the extractors and the string representation methods.
This is not an abstract class, and the content item factory method is not static; an instance of the factory needs to be created.
Modifier and Type | Class and Description |
---|---|
class |
ContentItemFactory.CodeContentItem |
class |
ContentItemFactory.CompositeContentItem |
class |
ContentItemFactory.ContainerContentItem |
class |
ContentItemFactory.DateContentItem |
class |
ContentItemFactory.DateTimeContentItem |
class |
ContentItemFactory.ImageContentItem |
class |
ContentItemFactory.NumericContentItem |
class |
ContentItemFactory.PersonNameContentItem |
class |
ContentItemFactory.SpatialCoordinates3DContentItem |
class |
ContentItemFactory.SpatialCoordinatesContentItem |
protected class |
ContentItemFactory.StringContentItem |
class |
ContentItemFactory.TemporalCoordinatesContentItem |
class |
ContentItemFactory.TextContentItem |
class |
ContentItemFactory.TimeContentItem |
class |
ContentItemFactory.UIDContentItem |
class |
ContentItemFactory.UnrecognizedContentItem |
class |
ContentItemFactory.WaveformContentItem |
Constructor and Description |
---|
ContentItemFactory() |
public ContentItemFactory.ContainerContentItem makeContainerContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, boolean continuityOfContentIsSeparate, String templateMappingResource, String templateIdentifier) throws DicomException
parent
- relationshipType
- conceptName
- continuityOfContentIsSeparate
- true if SEPARATE, false if CONTINUOUStemplateMappingResource
- templateIdentifier
- DicomException
public ContentItemFactory.ContainerContentItem makeContainerContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, boolean continuityOfContentIsSeparate) throws DicomException
parent
- relationshipType
- conceptName
- continuityOfContentIsSeparate
- true if SEPARATE, false if CONTINUOUSDicomException
public ContentItemFactory.ContainerContentItem makeContainerContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName) throws DicomException
parent
- relationshipType
- conceptName
- DicomException
public ContentItemFactory.CompositeContentItem makeCompositeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String referencedSOPClassUID, String referencedSOPInstanceUID) throws DicomException
parent
- relationshipType
- conceptName
- referencedSOPClassUID
- referencedSOPInstanceUID
- DicomException
public ContentItemFactory.ImageContentItem makeImageContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String referencedSOPClassUID, String referencedSOPInstanceUID, int referencedFrameNumber, int referencedSegmentNumber, String presentationStateSOPClassUID, String presentationStateSOPInstanceUID, String realWorldValueMappingSOPClassUID, String realWorldValueMappingSOPInstanceUID) throws DicomException
parent
- relationshipType
- conceptName
- referencedSOPClassUID
- referencedSOPInstanceUID
- referencedFrameNumber
- if < 1, not addedreferencedSegmentNumber
- if < 1, not addedpresentationStateSOPClassUID
- presentationStateSOPInstanceUID
- realWorldValueMappingSOPClassUID
- realWorldValueMappingSOPInstanceUID
- DicomException
public ContentItemFactory.SpatialCoordinatesContentItem makeSpatialCoordinatesContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String graphicType, float[] graphicData) throws DicomException
parent
- relationshipType
- conceptName
- graphicType
- graphicData
- DicomException
public ContentItemFactory.SpatialCoordinates3DContentItem makeSpatialCoordinates3DContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String graphicType, float[] graphicData, String referencedFrameOfReferenceUID) throws DicomException
parent
- relationshipType
- conceptName
- graphicType
- graphicData
- DicomException
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException
parent
- relationshipType
- conceptName
- numericValue
- units
- qualifier
- DicomException
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, double numericValue, CodedSequenceItem units) throws DicomException
parent
- relationshipType
- conceptName
- numericValue
- units
- DicomException
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, int numerator, long denominator, CodedSequenceItem units) throws DicomException
parent
- relationshipType
- conceptName
- numerator
- denominator
- units
- DicomException
public ContentItemFactory.NumericContentItem makeNumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, Double floatingPointValue, Integer rationalNumeratorValue, Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException
parent
- relationshipType
- conceptName
- numericValue
- floatingPointValue
- rationalNumeratorValue
- rationalDenominatorValue
- units
- qualifier
- DicomException
public ContentItemFactory.CodeContentItem makeCodeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem conceptCode) throws DicomException
parent
- relationshipType
- conceptName
- conceptCode
- DicomException
public static boolean codeContentItemValueMatchesCodeValueAndCodingSchemeDesignator(ContentItem ci, String cvWanted, String csdWanted)
ci
- csdWanted
- cvWanted
- public ContentItemFactory.DateTimeContentItem makeDateTimeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String stringValue) throws DicomException
parent
- relationshipType
- conceptName
- stringValue
- DicomException
public ContentItemFactory.DateContentItem makeDateContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String stringValue) throws DicomException
parent
- relationshipType
- conceptName
- stringValue
- DicomException
public ContentItemFactory.TimeContentItem makeTimeContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String stringValue) throws DicomException
parent
- relationshipType
- conceptName
- stringValue
- DicomException
public ContentItemFactory.PersonNameContentItem makePersonNameContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String stringValue) throws DicomException
parent
- relationshipType
- conceptName
- stringValue
- DicomException
public ContentItemFactory.UIDContentItem makeUIDContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String stringValue) throws DicomException
parent
- relationshipType
- conceptName
- stringValue
- DicomException
public ContentItemFactory.TextContentItem makeTextContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String stringValue) throws DicomException
parent
- relationshipType
- conceptName
- stringValue
- DicomException
public ContentItem getNewContentItem(ContentItem parent, AttributeList list) throws DicomException
Construct a content item of the appropriate class from a list of attributes.
parent
- the parent to add the content item tolist
- a list of attributes that constitute the content item as it is encoded in a DICOM data setDicomException