public class ContentItemFactory.NumericContentItem extends ContentItemWithValue
Modifier and Type | Field and Description |
---|---|
protected Double |
floatingPointValue |
protected String |
numericValue |
protected CodedSequenceItem |
qualifier |
protected Long |
rationalDenominatorValue |
protected Integer |
rationalNumeratorValue |
protected CodedSequenceItem |
units |
conceptName, referencedContentItemIdentifier, valueType
relationshipType
Constructor and Description |
---|
ContentItemFactory.NumericContentItem(ContentItem parent,
AttributeList list) |
ContentItemFactory.NumericContentItem(ContentItem parent,
boolean isNotSR,
String relationshipType,
CodedSequenceItem conceptName,
CodedSequenceItem qualifier)
Construct numeric content item with empty
MeasuredValueSequence with qualifier explaining why it is empty. |
ContentItemFactory.NumericContentItem(ContentItem parent,
boolean isNotSR,
String relationshipType,
CodedSequenceItem conceptName,
double floatingPointValue,
CodedSequenceItem units) |
ContentItemFactory.NumericContentItem(ContentItem parent,
boolean isNotSR,
String relationshipType,
CodedSequenceItem conceptName,
int numerator,
long denominator,
CodedSequenceItem units) |
ContentItemFactory.NumericContentItem(ContentItem parent,
boolean isNotSR,
String relationshipType,
CodedSequenceItem conceptName,
String numericValue,
CodedSequenceItem units,
CodedSequenceItem qualifier) |
ContentItemFactory.NumericContentItem(ContentItem parent,
boolean isNotSR,
String relationshipType,
CodedSequenceItem conceptName,
String numericValue,
Double floatingPointValue,
Integer rationalNumeratorValue,
Long rationalDenominatorValue,
CodedSequenceItem units,
CodedSequenceItem qualifier) |
ContentItemFactory.NumericContentItem(ContentItem parent,
String relationshipType,
CodedSequenceItem conceptName,
CodedSequenceItem qualifier)
Construct SR 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) |
Modifier and Type | Method and Description |
---|---|
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.
|
contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getConceptName, getConceptNameCodeMeaning, getConceptNameCodeValue, getConceptNameCodingSchemeDesignator, getValueType
addChild, addSibling, children, contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getAllowsChildren, getAttributeList, getChildAt, getChildCount, getGraphicData, getGraphicType, getIndex, getNamedChild, getNamedChild, getParent, getParentAsContentItem, getReferencedContentItemIdentifier, getReferencedContentItemIdentifierArray, getReferencedSOPClassUID, getReferencedSOPInstanceUID, getRelationshipType, getSingleStringValueOrNull, getSingleStringValueOrNullOfNamedChild, getSingleStringValueOrNullOfNamedChild, isLeaf
protected String numericValue
protected Double floatingPointValue
protected Integer rationalNumeratorValue
protected Long rationalDenominatorValue
protected CodedSequenceItem units
protected CodedSequenceItem qualifier
public ContentItemFactory.NumericContentItem(ContentItem parent, AttributeList list) throws DicomException
parent
- list
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, double floatingPointValue, CodedSequenceItem units) throws DicomException
parent
- isNotSR
- affects whether value type is NUM (false) or NUMERIC (true)relationshipType
- conceptName
- floatingPointValue
- will be converted to stringunits
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, double floatingPointValue, CodedSequenceItem units) throws DicomException
parent
- relationshipType
- conceptName
- floatingPointValue
- will be converted to stringunits
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, int numerator, long denominator, CodedSequenceItem units) throws DicomException
parent
- isNotSR
- affects whether value type is NUM (false) or NUMERIC (true)relationshipType
- conceptName
- numerator
- denominator
- units
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, int numerator, long denominator, CodedSequenceItem units) throws DicomException
parent
- relationshipType
- conceptName
- numerator
- denominator
- units
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException
parent
- isNotSR
- affects whether value type is NUM (false) or NUMERIC (true)relationshipType
- conceptName
- numericValue
- units
- qualifier
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units) throws DicomException
parent
- relationshipType
- conceptName
- numericValue
- units
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException
parent
- relationshipType
- conceptName
- numericValue
- units
- qualifier
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, String numericValue, Double floatingPointValue, Integer rationalNumeratorValue, Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException
parent
- isNotSR
- affects whether value type is NUM (false) or NUMERIC (true)relationshipType
- conceptName
- numericValue
- floatingPointValue
- rationalNumeratorValue
- rationalDenominatorValue
- units
- qualifier
- DicomException
public ContentItemFactory.NumericContentItem(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.NumericContentItem(ContentItem parent, boolean isNotSR, String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem qualifier) throws DicomException
Construct numeric content item with empty MeasuredValueSequence
with qualifier explaining why it is empty.
parent
- isNotSR
- affects whether value type is NUM (false) or NUMERIC (true)relationshipType
- conceptName
- qualifier
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem qualifier) throws DicomException
Construct SR numeric content item with empty MeasuredValueSequence
with qualifier explaining why it is empty.
parent
- relationshipType
- conceptName
- qualifier
- DicomException
protected void doCommonConstructorStuff(String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier, Double floatingPointValue, Integer rationalNumeratorValue, Long rationalDenominatorValue) throws DicomException
DicomException
protected void constructOnlyQualifier(CodedSequenceItem qualifier)
public CodedSequenceItem getQualifier()
public CodedSequenceItem getUnits()
public String getNumericValue()
public boolean hasFloatingPointValue()
public double getFloatingPointValue()
public boolean hasRationalValue()
public int getRationalNumeratorValue()
public long getRationalDenominatorValue()
public String getConceptValue()
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.
getConceptValue
in class ContentItemWithValue
public String getConceptNameAndValue()
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.
getConceptNameAndValue
in class ContentItemWithValue
public String toString()
ContentItemWithValue
Get a human-readable string representation of the content item.
toString
in class ContentItemWithValue