org.ipdr.common
Class FNFType
java.lang.Object
org.ipdr.common.OpenType
org.ipdr.common.CompositeType
org.ipdr.common.FNFType
public class FNFType
- extends CompositeType
This class represents a composite data type which which adheres to the
OpenMBean restrictions, and in addition is in First Normal Form (FNF).
FNF implies that no fields repeat and that no fields are structured,
In particular only the primitive types are allowed, as defined in OpenType.
This type introduces significant simplifying assumptions over the more
general CompositeType.
Fields inherited from class org.ipdr.common.OpenType |
BOOLEAN_TYPE_CODE, BYTE_TYPE_CODE, derivedType_, description_, DOUBLE_TYPE_CODE, FLOAT_TYPE_CODE, HEX_BINARY_TYPE_CODE, INTEGER_TYPE_CODE, LONG_TYPE_CODE, name_, OBJECT_TYPE_CODE, SHORT_TYPE_CODE, STRING_TYPE_CODE, UNSIGNEDBYTE_TYPE_CODE, UNSIGNEDINT_TYPE_CODE, UNSIGNEDLONG_TYPE_CODE, UNSIGNEDSHORT_TYPE_CODE |
Constructor Summary |
FNFType(java.lang.String name,
OpenType[] types,
java.lang.String description)
Builds a composite type from the supplied array of types. |
Method Summary |
static void |
main(java.lang.String[] args)
Simple demonstration entry point. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FNFType
public FNFType(java.lang.String name,
OpenType[] types,
java.lang.String description)
throws BadCompositeException
- Builds a composite type from the supplied array of types.
A given CompositeType is immutable. There are no setter methods,
hence, you cannot modify the structure of this type once created.
- Parameters:
name
- Composite Type Nametypes
- Array of OpenTypedescription
- The Description
- Throws:
BadCompositeException
- when a Composite Type is one of the
FNF array objects and when the type code does not match
main
public static void main(java.lang.String[] args)
- Simple demonstration entry point. Creates a CompositeType with
some of the basic types. Then it invokes toString() method on
constructed type to display.