public class ContentItemMacro extends Macro
| Constructor and Description |
|---|
ContentItemMacro(IDataSet objDataSet)
This constructor constructs a Macro with specified DataSet.
|
ContentItemMacro(IDataSet objDataSet,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with specified DataSet and DictionaryReader
|
ContentItemMacro(IItem objItem)
This constructor constructs a Macro with the specified Item
|
ContentItemMacro(IItem objItem,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with the specified Item and DictionaryReader
|
| Modifier and Type | Method and Description |
|---|---|
ConceptCodeSequence |
getConceptCodeSequence()
Retrieves pre-initialized object of Concept Code Sequence.If the module contains the sequence object
it returns the same otherwise it creates the sequence adds to the module with proper initialization
and then returns the object of sequence.
|
ConceptNameCodeSequence |
getConceptNameCodeSequence()
Retrieves pre-initialized object of Concept Name Code Sequence.If the module contains the sequence object
it returns the same otherwise it creates the sequence adds to the module with proper initialization
and then returns the object of sequence.
|
java.lang.String |
getDate()
Retrieves Date.
|
java.lang.String |
getDateTime()
Retrieves DateTime.
|
double[] |
getFloatingPointValue()
Retrieves the Floating Point Value.
|
MeasurementUnitsCodeSequence |
getMeasurementUnitsCodeSequence()
Retrieves pre-initialized object of Measurement Units Code Sequence.If the module contains the sequence object
it returns the same otherwise it creates the sequence adds to the module with proper initialization
and then returns the object of sequence.
|
java.lang.String[] |
getNumericValue()
Retrieves Numeric Value.
|
java.lang.String |
getPersonName()
Retrieves Person Name.
|
long[] |
getRationalDenominatorValue()
Retrieves Referenced Content Item Identifier.
|
java.lang.Long[] |
getRationalNumeratorValue()
Retrieves the Rational Numerator Value.
|
short[] |
getReferencedFrameNumber()
Retrieves Referenced Frame Number.
|
short[] |
getReferencedSegmentNumber()
Retrieves Referenced Segment Number.
|
ReferencedSOPSequence |
getReferencedSOPSequence()
Retrieves pre-initialized object of Referenced SOP Sequence.If the module contains the sequence object
it returns the same otherwise it creates the sequence adds to the module with proper initialization
and then returns the object of sequence.
|
java.lang.String |
getTextValue()
Retrieves the value of the Content Item.
|
java.lang.String |
getTime()
Retrieves Time.
|
java.lang.String |
getUID()
Retrieves a UID.
|
java.lang.String |
getValueType()
Return Value Type.
|
void |
setDate(java.lang.String strDate)
Sets Date.
|
void |
setDateTime(java.lang.String strDateTime)
Sets Date and Time.
|
void |
setFloatingPointValue(double[] dblArrFloatingPointValue)
Sets the Floating Point Value.
|
void |
setNumericValue(java.lang.String[] strSliceThickness)
Sets Numeric Value.
|
void |
setPersonName(java.lang.String strPersonName)
Sets Person Name.
|
void |
setRationalDenominatorValue(long[] lArrRationalDenominatorValue)
Sets Rational Denominator Value.
|
void |
setRationalNumeratorValue(java.lang.Long[] lArrRationalNumeratorValue)
Sets Rational Numerator Value.
|
void |
setReferencedFrameNumber(short[] arrShReferencedFrameNumber)
Sets Referenced Frame Number.
|
void |
setReferencedSegmentNumber(short[] arrShReferencedSegmentNumber)
Sets Referenced Segment Number.
|
void |
setTextValue(java.lang.String strTextValue)
Sets the value of the Content Item.
|
void |
setTime(java.lang.String strTime)
Sets Time.
|
void |
setUID(java.lang.String strUID)
Sets a UID.
|
void |
setValueType(EnumValueType enumValueType)
Sets type of Value.
|
boolean |
validate()
Validates all the attributes in CodeSequenceMacro that are present in the DataSet
|
boolean |
validate(IDataSet objIDataSet)
Validates all the attributes in Content Macro that are present in the DataSet
|
static boolean |
validate(IItem objIItem)
Validates all the attributes in Content Item Macro that are present in the DataSet
|
addDataElement, clone, contains, getDataElement, getTransferSyntaxpublic ContentItemMacro(IDataSet objDataSet)
objDataSet - Collection of DataElementspublic ContentItemMacro(IDataSet objDataSet, IDictionaryReader objDictionaryReader)
objDataSet - specifies the DataSetobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic ContentItemMacro(IItem objItem)
objItem - specifies instance of Item classpublic ContentItemMacro(IItem objItem, IDictionaryReader objDictionaryReader)
objItem - specifies instance of Item classobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic boolean validate()
throws InvalidMacroException
InvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.public boolean validate(IDataSet objIDataSet) throws InvalidMacroException
objIDataSet - collection of DataElementsInvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.public static boolean validate(IItem objIItem) throws InvalidMacroException
objIItem - collection of DataElements in a sequenceInvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.public void setValueType(EnumValueType enumValueType)
enumValueType - enum value of ValueType.public java.lang.String getValueType()
public ConceptNameCodeSequence getConceptNameCodeSequence()
public void setDateTime(java.lang.String strDateTime)
strDateTime - String value of DateTimepublic java.lang.String getDateTime()
public void setDate(java.lang.String strDate)
strDate - String value of Date.public java.lang.String getDate()
public void setTime(java.lang.String strTime)
strTime - String array of Time.public java.lang.String getTime()
public void setPersonName(java.lang.String strPersonName)
strPersonName - String Person Name.public java.lang.String getPersonName()
public void setUID(java.lang.String strUID)
strUID - String value of UID.public java.lang.String getUID()
public void setTextValue(java.lang.String strTextValue)
strTextValue - String value of Content Item.public java.lang.String getTextValue()
public ConceptCodeSequence getConceptCodeSequence()
public void setNumericValue(java.lang.String[] strSliceThickness)
strSliceThickness - String value of Numeric Value.public java.lang.String[] getNumericValue()
public void setFloatingPointValue(double[] dblArrFloatingPointValue)
dblArrFloatingPointValue - Double value of FloatingPointValuepublic double[] getFloatingPointValue()
public void setRationalNumeratorValue(java.lang.Long[] lArrRationalNumeratorValue)
lArrRationalNumeratorValue - Long array of Rational Numerator Value.public java.lang.Long[] getRationalNumeratorValue()
public void setRationalDenominatorValue(long[] lArrRationalDenominatorValue)
lArrRationalDenominatorValue - Long value of Referenced Content Item Identifierpublic long[] getRationalDenominatorValue()
public MeasurementUnitsCodeSequence getMeasurementUnitsCodeSequence()
public ReferencedSOPSequence getReferencedSOPSequence()
public void setReferencedFrameNumber(short[] arrShReferencedFrameNumber)
arrShReferencedFrameNumber - public short[] getReferencedFrameNumber()
public void setReferencedSegmentNumber(short[] arrShReferencedSegmentNumber)
arrShReferencedSegmentNumber - - Referenced Segment Numberpublic short[] getReferencedSegmentNumber()