SimpleType#INTEGER
is a SimpleType<Integer>
which is a subclass of OpenType<Integer>
,
meaning that an attribute, parameter, or return value that is described
as a SimpleType.INTEGER
must have Java type
Integer
.
OpenType
class is the parent abstract class of all classes which describe the actual open type
of open data values.
An open type is defined by:
ALLOWED_CLASSNAMES_LIST
),Modifier and Type | Field and Description |
---|---|
public static final String[] | ALLOWED_CLASSNAMES
Deprecated
Use
ALLOWED_CLASSNAMES_LIST instead.
|
public static final List | ALLOWED_CLASSNAMES_LIST
List of the fully qualified names of the Java classes allowed for open data values. |
private String | |
private String | |
private transient Descriptor | descriptor
Cached Descriptor for this OpenType, constructed on demand. |
private transient boolean | isArray
Tells if this type describes an array (checked in constructor). |
pack-priv static final long | |
private String |
Access | Constructor and Description |
---|---|
protected | OpenType(String
The fully qualified Java class name of the open data values this open type describes.
The valid Java class names allowed for open data values are listed in
className, String ALLOWED_CLASSNAMES_LIST .
A multidimensional array of any one of these classes
or their corresponding primitive types is also an allowed class,
in which case the class name follows the rules defined by the method
getName() of java.lang.Class .
For example, a 3-dimensional array of Strings has for class name
"[[[Ljava.lang.String; " (without the quotes).
The name given to the open type this instance represents; cannot be a null or empty string.
typeName, String The human readable description of the open type this instance represents;
cannot be a null or empty string.
description)Constructs an |
pack-priv |
Modifier and Type | Method and Description |
---|---|
private void | |
public abstract boolean | Returns: true if this object andobj are equal.the object to compare to. obj)Overrides java. Compares the specified |
public String | Returns: the class name.Returns the fully qualified Java class name of the open data values this open type describes. |
public String | |
pack-priv synchronized Descriptor | |
public String | |
public abstract int | |
public boolean | Returns: true if this is an array type.Returns |
pack-priv boolean | Returns: true ifot is assignable to this open type.the type to be tested. ot)Tests whether values of the given type can be assigned to this open type. |
public abstract boolean | |
private static boolean | |
private void | |
pack-priv String | |
public abstract String | Returns: the string representation.Overrides java. Returns a string representation of this open type instance. |
private static String | |
private static String |
ALLOWED_CLASSNAMES | back to summary |
---|---|
public static final String[] ALLOWED_CLASSNAMES
Deprecated Use |
ALLOWED_CLASSNAMES_LIST | back to summary |
---|---|
public static final List<String> ALLOWED_CLASSNAMES_LIST List of the fully qualified names of the Java classes allowed for open data values. A multidimensional array of any one of these classes or their corresponding primitive types is also an allowed class for open data values. ALLOWED_CLASSNAMES_LIST = { "java.lang.Void", "java.lang.Boolean", "java.lang.Character", "java.lang.Byte", "java.lang.Short", "java.lang.Integer", "java.lang.Long", "java.lang.Float", "java.lang.Double", "java.lang.String", "java.math.BigDecimal", "java.math.BigInteger", "java.util.Date", "javax.management.ObjectName", CompositeData.class.getName(), TabularData.class.getName() } ; |
className | back to summary |
---|---|
private String className |
description | back to summary |
---|---|
private String description |
descriptor | back to summary |
---|---|
private transient Descriptor descriptor Cached Descriptor for this OpenType, constructed on demand. |
isArray | back to summary |
---|---|
private transient boolean isArray Tells if this type describes an array (checked in constructor). |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID |
typeName | back to summary |
---|---|
private String typeName |
OpenType | back to summary |
---|---|
protected OpenType(String className, String typeName, String description) throws OpenDataException Constructs an
|
OpenType | back to summary |
---|---|
pack-priv OpenType(String className, String typeName, String description, boolean isArray) |
checkClassNameOverride | back to summary |
---|---|
private void checkClassNameOverride() throws SecurityException
|
equals | back to summary |
---|---|
public abstract boolean equals(Object obj) Overrides java. Compares the specified
|
getClassName | back to summary |
---|---|
public String getClassName() Returns the fully qualified Java class name of the open data values
this open type describes.
The only possible Java class names for open data values are listed in
|
getDescription | back to summary |
---|---|
public String getDescription() Returns the text description of this
|
getDescriptor | back to summary |
---|---|
pack-priv synchronized Descriptor getDescriptor() |
getTypeName | back to summary |
---|---|
public String getTypeName() Returns the name of this
|
hashCode | back to summary |
---|---|
public abstract int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
isArray | back to summary |
---|---|
public boolean isArray() Returns
|
isAssignableFrom | back to summary |
---|---|
pack-priv boolean isAssignableFrom(OpenType<?> ot) Tests whether values of the given type can be assigned to this open type. The default implementation of this method returns true only if the types are equal.
|
isValue | back to summary |
---|---|
public abstract boolean isValue(Object obj) Tests whether obj is a value for this open type.
|
overridesGetClassName | back to summary |
---|---|
private static boolean overridesGetClassName(final Class<?> c)
|
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException Deserializes an |
safeGetClassName | back to summary |
---|---|
pack-priv String safeGetClassName() |
toString | back to summary |
---|---|
public abstract String toString() Overrides java. Returns a string representation of this open type instance.
|
valid | back to summary |
---|---|
private static String valid(String argName, String argValue) |
validClassName | back to summary |
---|---|
private static String validClassName(String className) throws OpenDataException |