public class ContentItemFactory.NumericContentItem extends ContentItemWithValue
Modifier and Type | Field and Description |
---|---|
protected java.lang.Double |
floatingPointValue |
protected java.lang.String |
numericValue |
protected CodedSequenceItem |
qualifier |
protected java.lang.Long |
rationalDenominatorValue |
protected java.lang.Integer |
rationalNumeratorValue |
protected CodedSequenceItem |
units |
conceptName, referencedContentItemIdentifier, valueType
relationshipType
Constructor and Description |
---|
ContentItemFactory.NumericContentItem(ContentItem parent,
AttributeList list) |
ContentItemFactory.NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
CodedSequenceItem qualifier)
Construct numeric content item with empty
MeasuredValueSequence with qualifier explaining why it is empty. |
ContentItemFactory.NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
double floatingPointValue,
CodedSequenceItem units) |
ContentItemFactory.NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
int numerator,
long denominator,
CodedSequenceItem units) |
ContentItemFactory.NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
java.lang.String numericValue,
CodedSequenceItem units) |
ContentItemFactory.NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
java.lang.String numericValue,
CodedSequenceItem units,
CodedSequenceItem qualifier) |
ContentItemFactory.NumericContentItem(ContentItem parent,
java.lang.String relationshipType,
CodedSequenceItem conceptName,
java.lang.String numericValue,
java.lang.Double floatingPointValue,
java.lang.Integer rationalNumeratorValue,
java.lang.Long rationalDenominatorValue,
CodedSequenceItem units,
CodedSequenceItem qualifier) |
Modifier and Type | Method and Description |
---|---|
protected void |
constructOnlyQualifier(CodedSequenceItem qualifier) |
protected void |
doCommonConstructorStuff(java.lang.String numericValue,
CodedSequenceItem units,
CodedSequenceItem qualifier,
java.lang.Double floatingPointValue,
java.lang.Integer rationalNumeratorValue,
java.lang.Long rationalDenominatorValue) |
java.lang.String |
getConceptNameAndValue()
Get a string representation of the concept name and the value of the concept.
|
java.lang.String |
getConceptValue()
Get a string representation of the value of the concept.
|
double |
getFloatingPointValue() |
java.lang.String |
getNumericValue() |
CodedSequenceItem |
getQualifier() |
long |
getRationalDenominatorValue() |
int |
getRationalNumeratorValue() |
CodedSequenceItem |
getUnits() |
boolean |
hasFloatingPointValue() |
boolean |
hasRationalValue() |
java.lang.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 java.lang.String numericValue
protected java.lang.Double floatingPointValue
protected java.lang.Integer rationalNumeratorValue
protected java.lang.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, java.lang.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, java.lang.String relationshipType, CodedSequenceItem conceptName, int numerator, long denominator, CodedSequenceItem units) throws DicomException
parent
- relationshipType
- conceptName
- numerator
- denominator
- units
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, java.lang.String numericValue, CodedSequenceItem units) throws DicomException
parent
- relationshipType
- conceptName
- numericValue
- units
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, java.lang.String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException
parent
- relationshipType
- conceptName
- numericValue
- units
- qualifier
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, java.lang.String numericValue, java.lang.Double floatingPointValue, java.lang.Integer rationalNumeratorValue, java.lang.Long rationalDenominatorValue, CodedSequenceItem units, CodedSequenceItem qualifier) throws DicomException
parent
- relationshipType
- conceptName
- numericValue
- floatingPointValue
- rationalNumeratorValue
- rationalDenominatorValue
- units
- qualifier
- DicomException
public ContentItemFactory.NumericContentItem(ContentItem parent, java.lang.String relationshipType, CodedSequenceItem conceptName, CodedSequenceItem qualifier) throws DicomException
Construct numeric content item with empty MeasuredValueSequence
with qualifier explaining why it is empty.
parent
- relationshipType
- conceptName
- qualifier
- DicomException
protected void doCommonConstructorStuff(java.lang.String numericValue, CodedSequenceItem units, CodedSequenceItem qualifier, java.lang.Double floatingPointValue, java.lang.Integer rationalNumeratorValue, java.lang.Long rationalDenominatorValue) throws DicomException
DicomException
protected void constructOnlyQualifier(CodedSequenceItem qualifier)
public CodedSequenceItem getQualifier()
public CodedSequenceItem getUnits()
public java.lang.String getNumericValue()
public boolean hasFloatingPointValue()
public double getFloatingPointValue()
public boolean hasRationalValue()
public int getRationalNumeratorValue()
public long getRationalDenominatorValue()
public java.lang.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 java.lang.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 java.lang.String toString()
ContentItemWithValue
Get a human-readable string representation of the content item.
toString
in class ContentItemWithValue