|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bloomberglp.blpapi.ConstantsList
public abstract class 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 | |
---|---|
ConstantsList()
|
Method Summary | |
---|---|
abstract Constant |
constantAt(int index)
Return a read only Constant from this ConstansList at the
specified index |
abstract Schema.Datatype |
datatype()
Return the Datatype used to represent the value of this ConstantsList |
abstract java.lang.String |
description()
Returns a String containing a human readable description of this ConstantsList |
abstract Constant |
getConstant(Name name)
Return a read only Constant from this ConstantsList identified
by the specified name |
abstract Constant |
getConstant(java.lang.String name)
Return a read only Constant from this ConstantsList identified
by the specified name |
abstract boolean |
hasConstant(Name name)
Return true if this ConstantsList contains a Constant object
with the specified name |
abstract boolean |
hasConstant(java.lang.String name)
Return true if this ConstantsList contains a Constant object
with the specified name |
abstract Name |
name()
Returns the symbolic name of this ConstantsList |
abstract int |
numConstants()
Return the number of Constant objects contained in this
ConstantsList |
abstract void |
setUserData(java.lang.Object userData)
Set the user data associated with this ConstantsList to the specified userData |
abstract Schema.Status |
status()
Returns the status of this ConstantList |
abstract java.lang.Object |
userData()
Returns the user data associated with this ConstantsList. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstantsList()
Method Detail |
---|
public abstract void setUserData(java.lang.Object userData)
userData
- user provided data that is to be associated with this
ConstantsListpublic abstract Name name()
public abstract java.lang.String description()
public abstract Schema.Status status()
Schema.Status
public abstract Schema.Datatype datatype()
Schema.Datatype
public abstract java.lang.Object userData()
setUserData(Object)
has never been called for this
ConstantsList then return null
public abstract boolean hasConstant(Name name)
Constant
object
with the specified name
public abstract boolean hasConstant(java.lang.String name)
Constant
object
with the specified name
public abstract Constant getConstant(Name name)
Constant
from this ConstantsList identified
by the specified name
NotFoundException
- if this ConstansList does not contain a
Constant
with the specified name.public abstract Constant getConstant(java.lang.String name)
Constant
from this ConstantsList identified
by the specified name
NotFoundException
- if this ConstansList does not contain a
Constant
with the specified name.public abstract int numConstants()
Constant
objects contained in this
ConstantsList
public abstract Constant constantAt(int index)
Constant
from this ConstansList at the
specified index
java.lang.IndexOutOfBoundsException
- if index is not in the range of
0 to numConstants()
- 1
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |