|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.osgi.jmx.Item
public class Item
The item class enables the definition of open types in the appropriate
interfaces.
This class contains a number of methods that make it possible to create open
types for CompositeType
, TabularType
, and ArrayType
.
The normal creation throws a checked exception, making it impossible to use
them in a static initializer. They constructors are also not very suitable
for static construction.
An Item instance describes an item in a Composite Type. It groups the triplet
of name, description, and Open Type. These Item instances allows the
definitions of an item to stay together.
Constructor Summary | |
---|---|
Item(String name,
String description,
OpenType type,
String... restrictions)
Create a triple of name, description, and type. |
Method Summary | |
---|---|
static ArrayType |
arrayType(int dim,
OpenType elementType)
Return a new Array Type. |
static CompositeType |
compositeType(String name,
String description,
Item... items)
Create a Composite Type |
static CompositeType |
extend(CompositeType parent,
String name,
String description,
Item... items)
Extend a Composite Type by adding new items. |
static TabularType |
tabularType(String name,
String description,
CompositeType rowType,
String... index)
Create a Tabular Type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Item(String name, String description, OpenType type, String... restrictions)
name
- The name of the item.description
- The description of the item.type
- The Open Type of this item.restrictions
- Ignored, contains list of restrictionsMethod Detail |
---|
public static TabularType tabularType(String name, String description, CompositeType rowType, String... index)
name
- The name of the Tabular Type.description
- The description of the Tabular Type.rowType
- The Open Type for a rowindex
- The names of the items that form the index .
RuntimeException
- when the Tabular Type throws an OpenDataExceptionpublic static CompositeType compositeType(String name, String description, Item... items)
name
- The name of the Tabular Type.description
- The description of the Tabular Type.items
- The items that describe the composite type.
RuntimeException
- when the Tabular Type throws an OpenDataExceptionpublic static ArrayType arrayType(int dim, OpenType elementType)
dim
- The dimensionelementType
- The element type
public static CompositeType extend(CompositeType parent, String name, String description, Item... items)
parent
- The parent type, can be null
name
- The name of the typedescription
- The description of the typeitems
- The items that should be added/override to the parent type
RuntimeException
- when an OpenDataException is thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |