Package com.bloomberglp.blpapi
Class ConstantsList
java.lang.Object
com.bloomberglp.blpapi.ConstantsList
Represents a list of Constant objects in the schema.
As well as the list of Constant objects this class also provides access to the symbolic name, description and status of the ConstantsList. All Constant objects in a ConstantsList are of the same Datatype. ConstantLists are read-only and always created by the API, never by the application.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Constant
constantAt
(int index) Return a read onlyConstant
from this ConstansList at the specified indexabstract Schema.Datatype
datatype()
Return the Datatype used to represent the value of this ConstantsListabstract String
Returns a String containing a human readable description of this ConstantsListabstract Constant
getConstant
(Name name) Return a read onlyConstant
from this ConstantsList identified by the specified nameabstract Constant
getConstant
(String name) Return a read onlyConstant
from this ConstantsList identified by the specified nameabstract boolean
hasConstant
(Name name) Return true if this ConstantsList contains aConstant
object with the specified nameabstract boolean
hasConstant
(String name) Return true if this ConstantsList contains aConstant
object with the specified nameabstract Name
name()
Returns the symbolic name of this ConstantsListabstract int
Return the number ofConstant
objects contained in this ConstantsListabstract void
setUserData
(Object userData) Set the user data associated with this ConstantsList to the specified userDataabstract Schema.Status
status()
Returns the status of this ConstantListabstract Object
userData()
Returns the user data associated with this ConstantsList.
-
Constructor Details
-
ConstantsList
public ConstantsList()
-
-
Method Details
-
setUserData
Set the user data associated with this ConstantsList to the specified userData- Parameters:
userData
- user provided data that is to be associated with this ConstantsList
-
name
Returns the symbolic name of this ConstantsList- Returns:
- name
-
description
Returns a String containing a human readable description of this ConstantsList- Returns:
- description
-
status
Returns the status of this ConstantList- Returns:
- status
- See Also:
-
datatype
Return the Datatype used to represent the value of this ConstantsList- Returns:
- data type
- See Also:
-
userData
Returns the user data associated with this ConstantsList. IfsetUserData(Object)
has never been called for this ConstantsList then return null -
hasConstant
Return true if this ConstantsList contains aConstant
object with the specified name -
hasConstant
Return true if this ConstantsList contains aConstant
object with the specified name -
getConstant
Return a read onlyConstant
from this ConstantsList identified by the specified name- Throws:
NotFoundException
- if this ConstansList does not contain aConstant
with the specified name.
-
getConstant
Return a read onlyConstant
from this ConstantsList identified by the specified name- Throws:
NotFoundException
- if this ConstansList does not contain aConstant
with the specified name.
-
numConstants
public abstract int numConstants()Return the number ofConstant
objects contained in this ConstantsList -
constantAt
Return a read onlyConstant
from this ConstansList at the specified index- Throws:
IndexOutOfBoundsException
- if index is not in the range of 0 tonumConstants()
- 1
-