GigaSpaces XAP 7.1 API

com.gigaspaces.metadata
Interface ISpaceTypeInfo


public interface ISpaceTypeInfo

Encapsulates information about a space type.

Since:
7.1
Author:
Niv Ingberg

Method Summary
 int getNumOfProperties()
          Returns the number of properties in the type.
 ISpacePropertyInfo getProperty(int index)
          Gets a property by index.
 ISpacePropertyInfo getProperty(String name)
          Gets a property by name.
 int getPropertyIndex(String propertyName)
          Gets the index of a property by its name.
 String getTypeName()
          Gets the type name.
 

Method Detail

getTypeName

String getTypeName()
Gets the type name.

Returns:
The type name.

getNumOfProperties

int getNumOfProperties()
Returns the number of properties in the type.

Returns:
Number of properties in the type.

getProperty

ISpacePropertyInfo getProperty(int index)
Gets a property by index.

Parameters:
index - Index of requested property.
Returns:

getProperty

ISpacePropertyInfo getProperty(String name)
Gets a property by name.

Parameters:
name - Name of requested property.
Returns:

getPropertyIndex

int getPropertyIndex(String propertyName)
Gets the index of a property by its name.

Parameters:
propertyName - Name of property to look for.
Returns:
Index of property. If property is not in type, -1 is returned.

GigaSpaces XAP 7.1 API

Copyright © GigaSpaces.