|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.odm.MiningObject | +--oracle.dmt.odm.Category
An instance of Category
represents a value of a categorical
attribute, for example, the value "blue" of attribute "color", or number
"5" of the attribute "rating". A category may have a display name to
be used when ODM displays the category in output results.
Constructor Summary |
Category(boolean value)
Creates a boolean Category instance with display name set to the string
representation of the boolean, "TRUE" or "FALSE". |
Category(float value)
Creates a float Category instance with display name set to the string
representation of the float. |
Category(int value)
Creates an int Category instance with display name set to the string
representation of the int. |
Category(java.lang.String value)
Creates a string Category instance with display name set to the value. |
Category(java.lang.String value,
DataType type)
Creates a Category instance accepting the value as a string
with the data type is used for the display name. |
Category(java.lang.String displayName,
float value)
Creates a float Category instance with the provided display name. |
Category(java.lang.String displayName,
int value)
Creates an int Category instance with the provided display name. |
Category(java.lang.String displayName,
java.lang.String value)
Creates a string Category instance with the provided display name. |
Category(java.lang.String displayName,
java.lang.String value,
DataType dataType)
Creates a Category instance with the provided display name
value and data type. |
Method Summary |
Type | Method |
---|---|
boolean |
equals(Category cat)
Returns true if both categories have the same display name and value. |
DataType |
getDataType()
Returns the data type of the Category . |
java.lang.String |
getDisplayName()
Returns the display name of the Category . |
java.lang.String |
getValue()
Returns the value of the Category . |
java.lang.String |
toString()
Returns a formatted string representation of the Category instance. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Category(java.lang.String value, DataType type) throws InvalidArgumentException, ODMException
Category
instance accepting the value as a string
with the data type is used for the display name.value
- value of the categorytype
- data type of the categoryInvalidArgumentException
- - value or type is nullpublic Category(int value)
Category
instance with display name set to the string
representation of the int.value
- value of the categorypublic Category(float value)
Category
instance with display name set to the string
representation of the float.value
- value of the categorypublic Category(boolean value)
Category
instance with display name set to the string
representation of the boolean, "TRUE" or "FALSE".value
- value of the categorypublic Category(java.lang.String value) throws InvalidArgumentException, ODMException
Category
instance with display name set to the value.value
- value of the categoryInvalidArgumentException
- - value is nullpublic Category(java.lang.String displayName, int value) throws InvalidArgumentException, ODMException
Category
instance with the provided display name.displayName
- display name of the categoryvalue
- value of the categoryInvalidArgumentException
- - displayName is nullpublic Category(java.lang.String displayName, float value) throws InvalidArgumentException, ODMException
Category
instance with the provided display name.displayName
- display name of the categoryvalue
- value of the categoryInvalidArgumentException
- - displayName is nullpublic Category(java.lang.String displayName, java.lang.String value) throws InvalidArgumentException, ODMException
Category
instance with the provided display name.displayName
- display name of the categoryvalue
- value of the categoryInvalidArgumentException
- - value or type is nullpublic Category(java.lang.String displayName, java.lang.String value, DataType dataType) throws InvalidArgumentException, ODMException
Category
instance with the provided display name
value and data type.displayName
- display name of the categoryvalue
- value of the categorydataType
- data type of the categoryInvalidArgumentException
- - value or type is nullMethod Detail |
public java.lang.String getValue()
Category
.Category
valuepublic java.lang.String getDisplayName()
Category
.Category
display namepublic DataType getDataType()
Category
.Category
data typepublic java.lang.String toString()
Category
instance.toString
in class java.lang.Object
public boolean equals(Category cat)
cat
- Category- Returns:
- true if both categories are the same
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |