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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ConstantconstantAt(int index) Return a read onlyConstantfrom this ConstansList at the specified indexabstract Schema.Datatypedatatype()Return the Datatype used to represent the value of this ConstantsListabstract StringReturns a String containing a human readable description of this ConstantsListabstract ConstantgetConstant(Name name) Return a read onlyConstantfrom this ConstantsList identified by the specified nameabstract ConstantgetConstant(String name) Return a read onlyConstantfrom this ConstantsList identified by the specified nameabstract booleanhasConstant(Name name) Return true if this ConstantsList contains aConstantobject with the specified nameabstract booleanhasConstant(String name) Return true if this ConstantsList contains aConstantobject with the specified nameabstract Namename()Returns the symbolic name of this ConstantsListabstract intReturn the number ofConstantobjects contained in this ConstantsListabstract voidsetUserData(Object userData) Set the user data associated with this ConstantsList to the specified userDataabstract Schema.Statusstatus()Returns the status of this ConstantListabstract ObjectuserData()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 aConstantobject with the specified name -
hasConstant
Return true if this ConstantsList contains aConstantobject with the specified name -
getConstant
Return a read onlyConstantfrom this ConstantsList identified by the specified name- Throws:
NotFoundException- if this ConstansList does not contain aConstantwith the specified name.
-
getConstant
Return a read onlyConstantfrom this ConstantsList identified by the specified name- Throws:
NotFoundException- if this ConstansList does not contain aConstantwith the specified name.
-
numConstants
public abstract int numConstants()Return the number ofConstantobjects contained in this ConstantsList -
constantAt
Return a read onlyConstantfrom this ConstansList at the specified index- Throws:
IndexOutOfBoundsException- if index is not in the range of 0 tonumConstants()- 1
-