public class CotTypeTree
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
clearDescription(java.lang.String type)
Removes any description currently associated with the specified type String
|
java.lang.String |
getDescription(java.lang.String type)
Returns the String description for a specified CoT type string.
|
java.lang.String |
getDescription(java.lang.String type,
boolean explicitMatch)
Returns the String representation of the description for a specified CoT type.
|
static CotTypeTree |
getInstance()
Returns the one and only instance of the CotTypeTree
|
boolean |
hasDescriptionInTree(java.lang.String type)
Returns a boolean indicating if a specified CoT type has a non-null description within the TypeTree
|
void |
revertToDefaultTree()
Restores the CotTypeTree to its original state.
|
void |
setDescription(java.lang.String type,
java.lang.String description)
Replaces the description String associated with a specified type.
|
public static CotTypeTree getInstance()
public void revertToDefaultTree()
public java.lang.String getDescription(java.lang.String type)
type
- the CoT type string whose description is being requestedjava.lang.IllegalArgumentException
- if the specified type is not a valid CoT type stringpublic java.lang.String getDescription(java.lang.String type, boolean explicitMatch)
type
- the CoT type string whose description is being requestedexplicitMatch
- a boolean flag indicating if an explicit match is requested.java.lang.IllegalArgumentException
- if the specified type is not a valid CoT type stringpublic void setDescription(java.lang.String type, java.lang.String description)
type
- the type String with which to associate the specified descriptiondescription
- the description String to associate with the specified CoT typepublic void clearDescription(java.lang.String type)
type
- the String representation of the CoT type whose description is to be clearedjava.lang.IllegalArgumentException
- if the specified String is not a valid CoT typepublic boolean hasDescriptionInTree(java.lang.String type)
type
- the String representation of the CoT type of interestjava.lang.IllegalArgumentException
- if the specified String is not a valid CoT type