public class TypeInfo
extends java.lang.Object
example: TypeInfo is used to indicate the types and properties handled
by a PropertyProviderAdapter during its registration:
public MyDataProviderImpl(DataServiceExtensionRegistry registry) {
registry.registerDataAdapter(this, getProvidedTypeInfos());
}
private TypeInfo[] getProvidedTypeInfos() {
// This data adapter handles 2 VM properties
TypeInfo vmTypeInfo = new TypeInfo();
vmTypeInfo.type = "VirtualMachine";
vmTypeInfo.properties = new String[] { "samples:vmProp1", "samples:vmProp2" };
return new TypeInfo[] { vmTypeInfo };
}
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALL_TYPES_WILDCARD
A value indicating that all types are included.
|
com.vmware.vise.data.query.ComputedPropertyInfo[] |
computedProperties
Optional info describing native properties for each computed property.
|
static java.lang.String |
DEFAULT_OBJECT_TYPE
The supertype of all types.
|
com.vmware.vise.data.query.DerivedPropertyInfo[] |
derivedProperties
Optional info describing source properties for each derived property.
|
java.lang.String[] |
properties
The array of properties considered for that type.
|
java.lang.String |
type
The object type.
|
| Constructor and Description |
|---|
TypeInfo() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
public static final java.lang.String ALL_TYPES_WILDCARD
public static final java.lang.String DEFAULT_OBJECT_TYPE
public java.lang.String type
public java.lang.String[] properties
@optional public com.vmware.vise.data.query.ComputedPropertyInfo[] computedProperties
@optional public com.vmware.vise.data.query.DerivedPropertyInfo[] derivedProperties
Copyright @ 2013-2018 VMware, Inc. All rights reserved.