|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.datapower.wamt.DeviceType
public class DeviceType
This class provides a set of enumerated values for the device type, as opposed to using String values. You should use the public fields and the methods included here.
The device type describes generally the capabilities of the appliance based
on the software. In general, the XS40 is a superset of the XS35, and the XI50
is a superset of the XS40. Also be aware that there may be more DeviceTypes
than the enums listed here, as this class supports creation of DeviceTypes
not known apriori. The enums are here only as a convenience. Be sure
to use the #equals(DeviceType)
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)
.
DeviceTypeIncompatibilityException
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT_2009_2013
|
static DeviceType |
XA35
A device that is an XA35. |
static DeviceType |
XB50
A device that is an XB50. |
static DeviceType |
XB52
A device that is an XB52 |
static DeviceType |
XC10
A device that is an XG45 |
static DeviceType |
XE82
A device that is an XE82 |
static DeviceType |
XG45
A device that is an XG45 |
static DeviceType |
XI50
A device that is an XI50. |
static DeviceType |
XI52
A device that is an XI52 |
static DeviceType |
XM70
A device that is an XM70. |
static DeviceType |
XS40
A device that is an XS40. |
Constructor Summary | |
---|---|
DeviceType(java.lang.String description)
Create a new DeviceType object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object that)
Compare two DeviceType objects to see if they are equivalent. |
static DeviceType |
fromString(java.lang.String dirtyString)
Get a DeviceType instance based on the human-readable String representation of the instance. |
java.lang.String |
getDisplayName()
Get a String description of this object that is suitable for display to an end user. |
int |
hashCode()
|
boolean |
isCompatibleWith(DeviceType that)
Check if two DeviceType 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 DeviceType XA35
public static final DeviceType XM70
public static final DeviceType XS40
public static final DeviceType XI50
public static final DeviceType XI52
public static final DeviceType XB50
public static final DeviceType XB52
public static final DeviceType XE82
public static final DeviceType XG45
public static final DeviceType XC10
Constructor Detail |
---|
public DeviceType(java.lang.String description)
fromString(String)
is
preferred, because it will attempt to reuse objects for known Strings.
description
- the text identifier of the device type, such as "XS40".Method Detail |
---|
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
that
- the other DeviceType object to compare to "this".
isCompatibleWith(DeviceType)
public int hashCode()
hashCode
in class java.lang.Object
public boolean isCompatibleWith(DeviceType that)
that
- the other DeviceType to compare to "this"
#equals(DeviceType)
public java.lang.String toString()
toString
in class java.lang.Object
getDisplayName()
public java.lang.String getDisplayName()
toString()
public static final DeviceType fromString(java.lang.String dirtyString)
dirtyString
- A String previously returned by DeviceType.toString()
DeviceType(String)
is that this
method will attempt to reuse instances if they are available. If
the String does not exist in a known enum, then it will
instantiate a new object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |