com.pixelmed.dicom
Class ContentItemFactory.NumericContentItem

java.lang.Object
  extended by com.pixelmed.dicom.ContentItem
      extended by com.pixelmed.dicom.ContentItemWithValue
          extended by com.pixelmed.dicom.ContentItemFactory.NumericContentItem
All Implemented Interfaces:
TreeNode
Enclosing class:
ContentItemFactory

public class ContentItemFactory.NumericContentItem
extends ContentItemWithValue


Field Summary
protected  Double floatingPointValue
           
protected  String numericValue
           
protected  CodedSequenceItem qualifier
           
protected  Long rationalDenominatorValue
           
protected  Integer rationalNumeratorValue
           
protected  CodedSequenceItem units
           
 
Fields inherited from class com.pixelmed.dicom.ContentItemWithValue
conceptName, referencedContentItemIdentifier, valueType
 
Fields inherited from class com.pixelmed.dicom.ContentItem
relationshipType
 
Constructor Summary
ContentItemFactory.NumericContentItem(ContentItem parent, AttributeList list)
           
ContentItemFactory.NumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem qualifier)
          Construct numeric content item with empty MeasuredValueSequence with qualifier explaining why it is empty.
ContentItemFactory.NumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, double floatingPointValue, CodedSequenceItem units)
           
ContentItemFactory.NumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, int numerator, long denominator, CodedSequenceItem units)
           
ContentItemFactory.NumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units)
           
ContentItemFactory.NumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier)
           
ContentItemFactory.NumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, Double floatingPointValue, Integer rationalNumeratorValue, Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier)
           
 
Method Summary
protected  void constructOnlyQualifier(CodedSequenceItem qualifier)
           
protected  void doCommonConstructorStuff(String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier, Double floatingPointValue, Integer rationalNumeratorValue, Long rationalDenominatorValue)
           
 String getConceptNameAndValue()
          Get a string representation of the concept name and the value of the concept.
 String getConceptValue()
          Get a string representation of the value of the concept.
 double getFloatingPointValue()
           
 String getNumericValue()
           
 CodedSequenceItem getQualifier()
           
 long getRationalDenominatorValue()
           
 int getRationalNumeratorValue()
           
 CodedSequenceItem getUnits()
           
 boolean hasFloatingPointValue()
           
 boolean hasRationalValue()
           
 String toString()
          Get a human-readable string representation of the content item.
 
Methods inherited from class com.pixelmed.dicom.ContentItemWithValue
contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getConceptName, getConceptNameCodeMeaning, getConceptNameCodeValue, getConceptNameCodingSchemeDesignator, getValueType
 
Methods inherited from class com.pixelmed.dicom.ContentItem
addChild, addSibling, children, contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getAllowsChildren, getAttributeList, getChildAt, getChildCount, getGraphicData, getGraphicType, getIndex, getNamedChild, getNamedChild, getParent, getParentAsContentItem, getReferencedContentItemIdentifier, getReferencedContentItemIdentifierArray, getReferencedSOPClassUID, getReferencedSOPInstanceUID, getRelationshipType, getSingleStringValueOrNull, getSingleStringValueOrNullOfNamedChild, getSingleStringValueOrNullOfNamedChild, isLeaf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

numericValue

protected String numericValue

floatingPointValue

protected Double floatingPointValue

rationalNumeratorValue

protected Integer rationalNumeratorValue

rationalDenominatorValue

protected Long rationalDenominatorValue

units

protected CodedSequenceItem units

qualifier

protected CodedSequenceItem qualifier
Constructor Detail

ContentItemFactory.NumericContentItem

public ContentItemFactory.NumericContentItem(ContentItem parent,
                                             AttributeList list)
                                      throws DicomException
Parameters:
parent -
list -
Throws:
DicomException

ContentItemFactory.NumericContentItem

public ContentItemFactory.NumericContentItem(ContentItem parent,
                                             String relationshipType,
                                             CodedSequenceItem conceptName,
                                             double floatingPointValue,
                                             CodedSequenceItem units)
                                      throws DicomException
Parameters:
parent -
relationshipType -
conceptName -
floatingPointValue - will be converted to string
units -
Throws:
DicomException

ContentItemFactory.NumericContentItem

public ContentItemFactory.NumericContentItem(ContentItem parent,
                                             String relationshipType,
                                             CodedSequenceItem conceptName,
                                             int numerator,
                                             long denominator,
                                             CodedSequenceItem units)
                                      throws DicomException
Parameters:
parent -
relationshipType -
conceptName -
numerator -
denominator -
units -
Throws:
DicomException

ContentItemFactory.NumericContentItem

public ContentItemFactory.NumericContentItem(ContentItem parent,
                                             String relationshipType,
                                             CodedSequenceItem conceptName,
                                             String numericValue,
                                             CodedSequenceItem units)
                                      throws DicomException
Parameters:
parent -
relationshipType -
conceptName -
numericValue -
units -
Throws:
DicomException

ContentItemFactory.NumericContentItem

public ContentItemFactory.NumericContentItem(ContentItem parent,
                                             String relationshipType,
                                             CodedSequenceItem conceptName,
                                             String numericValue,
                                             CodedSequenceItem units,
                                             CodedSequenceItem qualifier)
                                      throws DicomException
Parameters:
parent -
relationshipType -
conceptName -
numericValue -
units -
qualifier -
Throws:
DicomException

ContentItemFactory.NumericContentItem

public ContentItemFactory.NumericContentItem(ContentItem parent,
                                             String relationshipType,
                                             CodedSequenceItem conceptName,
                                             String numericValue,
                                             Double floatingPointValue,
                                             Integer rationalNumeratorValue,
                                             Long rationalDenominatorValue,
                                             CodedSequenceItem units,
                                             CodedSequenceItem qualifier)
                                      throws DicomException
Parameters:
parent -
relationshipType -
conceptName -
numericValue -
floatingPointValue -
rationalNumeratorValue -
rationalDenominatorValue -
units -
qualifier -
Throws:
DicomException

ContentItemFactory.NumericContentItem

public ContentItemFactory.NumericContentItem(ContentItem parent,
                                             String relationshipType,
                                             CodedSequenceItem conceptName,
                                             CodedSequenceItem qualifier)
                                      throws DicomException

Construct numeric content item with empty MeasuredValueSequence with qualifier explaining why it is empty.

Parameters:
parent -
relationshipType -
conceptName -
qualifier -
Throws:
DicomException
Method Detail

doCommonConstructorStuff

protected void doCommonConstructorStuff(String numericValue,
                                        CodedSequenceItem units,
                                        CodedSequenceItem qualifier,
                                        Double floatingPointValue,
                                        Integer rationalNumeratorValue,
                                        Long rationalDenominatorValue)
                                 throws DicomException
Throws:
DicomException

constructOnlyQualifier

protected void constructOnlyQualifier(CodedSequenceItem qualifier)

getQualifier

public CodedSequenceItem getQualifier()

getUnits

public CodedSequenceItem getUnits()

getNumericValue

public String getNumericValue()

hasFloatingPointValue

public boolean hasFloatingPointValue()

getFloatingPointValue

public double getFloatingPointValue()

hasRationalValue

public boolean hasRationalValue()

getRationalNumeratorValue

public int getRationalNumeratorValue()

getRationalDenominatorValue

public long getRationalDenominatorValue()

getConceptValue

public String getConceptValue()
Description copied from class: ContentItemWithValue

Get a string representation of the value of the concept.

The exact form of the returned string is specific to the type of ContentItem.

Specified by:
getConceptValue in class ContentItemWithValue
Returns:
a String representation of the name and value, or an empty string

getConceptNameAndValue

public String getConceptNameAndValue()
Description copied from class: ContentItemWithValue

Get a string representation of the concept name and the value of the concept.

The exact form of the returned string is specific to the type of ContentItem.

Overrides:
getConceptNameAndValue in class ContentItemWithValue
Returns:
a String representation of the name and value, or an empty string

toString

public String toString()
Description copied from class: ContentItemWithValue

Get a human-readable string representation of the content item.

Overrides:
toString in class ContentItemWithValue
Returns:
the string representation of the content item