Package com.bloomberglp.blpapi
Class SchemaTypeDefinition
java.lang.Object
com.bloomberglp.blpapi.SchemaTypeDefinition
The definition of a type in the schema.
Each SchemaElementDefinition
object has a SchemaTypeDefinition (which it may share
with other SchemaElementDefinition
objects). SchemaTypeDefinition objects are read-only
and always created by the API, never by the application.
A SchemaTypeDefinition can define items which are either simple (that is, they are a single value) or a sequence or a choice Element (that is, they may contain an item or items which are accessed by name)
For sequence or choice items the SchemaTypeDefinition provides access to the individual SchemaElementDefinition
objects that define each member of the sequence.
In addition, the SchemaTypeDefinition provides access to the symbolic name of the TypeDefinition, its description and its status.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ConstraintsList
abstract Schema.Datatype
datatype()
Return theSchema.Datatype
of this SchemaTypeDefinitionabstract String
Return a string which contains a human readable description of this SchemaTypeDefinitionabstract ConstantsList
Return aConstantsList
of all the enumerators for this SchemaTypeDefinition if this type is an Enumeration type.abstract SchemaElementDefinition
getElementDefinition
(int index) Return the ElementDefinition at the specified index in this SchemaTypeDefinitionabstract SchemaElementDefinition
getElementDefinition
(Name name) Return the ElementDefinition with the specified name in this SchemaTypeDefinitionabstract SchemaElementDefinition
getElementDefinition
(String name) Return the ElementDefinition with the specified name in this SchemaTypeDefinitionabstract boolean
hasElementDefinition
(Name name) Return true if this SchemaTypeDefinition contains an ElementDefinition with the specified name.abstract boolean
Return true if this SchemaTypeDefinition defines a Sequence or a Choice type.abstract boolean
Return true if this SchemaTypeDefinition defines a enumerated typeabstract boolean
Return true if this SchemaTypeDefinition defines a primitive typeabstract Name
name()
Return the name of this SchemaTypeDefinitionabstract int
Return the number of ElementDefinitions in this SchemaTypeDefinitionabstract void
setUserData
(Object userData) Set the user data associated with this SchemaTypeDefinition to the specified userData.abstract Schema.Status
status()
Return the status of this SchemaTypeDefinitionabstract Object
userData()
Return the user data associated with this SchemaTypeDefinition
-
Constructor Details
-
SchemaTypeDefinition
public SchemaTypeDefinition()
-
-
Method Details
-
setUserData
Set the user data associated with this SchemaTypeDefinition to the specified userData. -
name
Return the name of this SchemaTypeDefinition -
description
Return a string which contains a human readable description of this SchemaTypeDefinition -
status
Return the status of this SchemaTypeDefinition -
datatype
Return theSchema.Datatype
of this SchemaTypeDefinition -
isComplexType
public abstract boolean isComplexType()Return true if this SchemaTypeDefinition defines a Sequence or a Choice type. -
isSimpleType
public abstract boolean isSimpleType()Return true if this SchemaTypeDefinition defines a primitive type -
isEnumerationType
public abstract boolean isEnumerationType()Return true if this SchemaTypeDefinition defines a enumerated type -
enumeration
Return aConstantsList
of all the enumerators for this SchemaTypeDefinition if this type is an Enumeration type. -
constraints
-
userData
Return the user data associated with this SchemaTypeDefinition -
hasElementDefinition
Return true if this SchemaTypeDefinition contains an ElementDefinition with the specified name. -
getElementDefinition
Return the ElementDefinition with the specified name in this SchemaTypeDefinition- Throws:
NotFoundException
- if this SchemaTypeDefinition contains no ElementDefinition with the specified name
-
getElementDefinition
Return the ElementDefinition with the specified name in this SchemaTypeDefinition- Throws:
NotFoundException
- if this SchemaTypeDefinition contains no ElementDefinition with the specified name
-
numElementDefinitions
public abstract int numElementDefinitions()Return the number of ElementDefinitions in this SchemaTypeDefinition -
getElementDefinition
Return the ElementDefinition at the specified index in this SchemaTypeDefinition- Throws:
IndexOutOfBoundsException
- if index >=numElementDefinitions()
.
-