|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.datapower.wamt.ModelType
public class ModelType
This class provides a set of enumerated values for the model type, as opposed to using String values. You should use the public fields and the methods included here.
The model describes the hardware version of the appliance. Also be aware that
there may be more ModelTypes than the enums listed here, as this class
supports creation of ModelTypes not known apriori. The enums are here only
as a convenience. Be sure to use the #equals(ModelType)
method and
not the ==
operator when comparing for equality.
The descriptions in this class were NOT NLS enabled, because they are
unlikely to ever be internationalized. The descriptions are copied directly
from the device metadata, see
Commands.getDeviceMetaInfo(com.ibm.datapower.wamt.amp.DeviceContext)
.
ModelTypeIncompatibilityException
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT_2009_2013
|
static ModelType |
TYPE_4195
A model that is 4195 |
static ModelType |
TYPE_5725
A model that is a virtual appliance that will specifically run on VMWare |
static ModelType |
TYPE_7198
A model that is a 7198. |
static ModelType |
TYPE_7199
A model that is a 7199. |
static ModelType |
TYPE_9001
A model that is a 9001. |
static ModelType |
TYPE_9002
A model that is a 9002. |
static ModelType |
TYPE_9003
A model that is a 9003. |
static ModelType |
TYPE_9005
A special model type used ONLY for firmware that indicates the firmware supports a 7198 or 7199. |
static ModelType |
TYPE_9235
A model that is a 9235. |
static ModelType |
TYPE_OTHER
A special model type used ONLY for firmware that indicates the firmware supports a 9001 or 9002. |
static ModelType |
TYPE_Virtual
A model that is a generic virtual appliance that will run on any hypervisor |
Constructor Summary | |
---|---|
ModelType(java.lang.String description)
Create a new ModelType object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object that)
Compare two ModelType objects to see if they are equal. |
static ModelType |
fromString(java.lang.String modelTypeString)
Get a ModelType instance based on the String representation of the instance returned by getDisplayName |
java.lang.String |
getDisplayName()
Get a String description of this object that is suitable for display to an end user. |
int |
hashCode()
|
boolean |
isCompatibleWith(ModelType that)
Check if two ModelType objects are compatible with each other. |
java.lang.String |
toString()
Get a human-readable String representation of this object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT_2009_2013
public static final ModelType TYPE_9001
public static final ModelType TYPE_9002
public static final ModelType TYPE_9003
public static final ModelType TYPE_9235
public static final ModelType TYPE_7198
public static final ModelType TYPE_7199
public static final ModelType TYPE_9005
public static final ModelType TYPE_OTHER
public static final ModelType TYPE_5725
public static final ModelType TYPE_Virtual
public static final ModelType TYPE_4195
Constructor Detail |
---|
public ModelType(java.lang.String description)
fromString(String)
is
preferred, because it will attempt to reuse objects for known Strings.
description
- the text identifier of the model type, such as "9003".Method Detail |
---|
public boolean equals(java.lang.Object that)
isCompatibleWith(ModelType)
.
equals
in class java.lang.Object
that
- the other ModelType object to compare to this
.
isCompatibleWith(ModelType)
public int hashCode()
hashCode
in class java.lang.Object
public boolean isCompatibleWith(ModelType that)
For the most part, "compatible" means #equals(ModelType)
.
However, a 9003 is not equal to a 9235, but they are compatible.
that
- other ModelType object to compare to this
.
#equals(ModelType)
public java.lang.String toString()
toString
in class java.lang.Object
getDisplayName()
public java.lang.String getDisplayName()
This was NOT NLS enabled because the ModelType descriptions are constants
toString()
public static ModelType fromString(java.lang.String modelTypeString)
modelTypeString
- A String previously returned by ModelType.getDisplayName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |