com.pixelmed.dicom
Class ContentItemFactory.StringContentItem

java.lang.Object
  extended by com.pixelmed.dicom.ContentItem
      extended by com.pixelmed.dicom.ContentItemFactory.StringContentItem
All Implemented Interfaces:
TreeNode
Direct Known Subclasses:
ContentItemFactory.DateContentItem, ContentItemFactory.DateTimeContentItem, ContentItemFactory.PersonNameContentItem, ContentItemFactory.TextContentItem, ContentItemFactory.TimeContentItem, ContentItemFactory.UIDContentItem
Enclosing class:
ContentItemFactory

protected abstract class ContentItemFactory.StringContentItem
extends ContentItem


Field Summary
protected  String stringValue
           
 
Fields inherited from class com.pixelmed.dicom.ContentItem
conceptName, referencedContentItemIdentifier, relationshipType, valueType
 
Constructor Summary
ContentItemFactory.StringContentItem(ContentItem parent, AttributeList list, AttributeTag tag)
           
ContentItemFactory.StringContentItem(ContentItem parent, String valueType, String relationshipType, CodedSequenceItem conceptName, AttributeTag tagForValue, String stringValue)
           
 
Method Summary
 String getConceptValue()
          Get a string representation of the value of the concept.
 void setConceptValue(AttributeTag tagForValue, String stringValue)
           
 String toString()
          Get a human-readable string representation of the content item.
 
Methods inherited from class com.pixelmed.dicom.ContentItem
addChild, addSibling, children, contentItemNameMatchesCodeValueAndCodingSchemeDesignator, contentItemNameMatchesCodeValueAndCodingSchemeDesignator, getAllowsChildren, getAttributeList, getChildAt, getChildCount, getConceptName, getConceptNameAndValue, getConceptNameCodeMeaning, getConceptNameCodeValue, getConceptNameCodingSchemeDesignator, getGraphicData, getGraphicType, getIndex, getNamedChild, getNamedChild, getParent, getParentAsContentItem, getReferencedContentItemIdentifier, getReferencedContentItemIdentifierArray, getReferencedSOPClassUID, getReferencedSOPInstanceUID, getRelationshipType, getSingleStringValueOrNull, getSingleStringValueOrNullOfNamedChild, getSingleStringValueOrNullOfNamedChild, getValueType, isLeaf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stringValue

protected String stringValue
Constructor Detail

ContentItemFactory.StringContentItem

public ContentItemFactory.StringContentItem(ContentItem parent,
                                            AttributeList list,
                                            AttributeTag tag)
Parameters:
parent -
list -
tag -

ContentItemFactory.StringContentItem

public ContentItemFactory.StringContentItem(ContentItem parent,
                                            String valueType,
                                            String relationshipType,
                                            CodedSequenceItem conceptName,
                                            AttributeTag tagForValue,
                                            String stringValue)
                                     throws DicomException
Parameters:
parent -
valueType -
relationshipType -
conceptName -
tagForValue -
stringValue -
Throws:
DicomException
Method Detail

getConceptValue

public String getConceptValue()
Description copied from class: ContentItem

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 ContentItem
Returns:
a String representation of the name and value, or an empty string

setConceptValue

public void setConceptValue(AttributeTag tagForValue,
                            String stringValue)
                     throws DicomException
Parameters:
tagForValue -
stringValue - if null, removes the value
Throws:
DicomException

toString

public String toString()
Description copied from class: ContentItem

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

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