Package gov.aps.jca.dbr
Class DBR
- java.lang.Object
-
- gov.aps.jca.dbr.DBR
-
- Direct Known Subclasses:
DBR_Byte,DBR_Double,DBR_Enum,DBR_Float,DBR_Int,DBR_PutAckS,DBR_PutAckT,DBR_Short,DBR_String
public abstract class DBR extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract DBRconvert(DBRType convertType)DBRconvert(DBRType convertType, Object params)intgetCount()DBRTypegetType()ObjectgetValue()booleanisBYTE()static booleanisBYTE(DBR dbr)booleanisCTRL()static booleanisCTRL(DBR dbr)booleanisDOUBLE()static booleanisDOUBLE(DBR dbr)booleanisENUM()static booleanisENUM(DBR dbr)booleanisFLOAT()static booleanisFLOAT(DBR dbr)booleanisGR()static booleanisGR(DBR dbr)booleanisINT()static booleanisINT(DBR dbr)booleanisLABELS()static booleanisLABELS(DBR dbr)static booleanisPRECISION(DBR dbr)booleanisPRECSION()booleanisSHORT()static booleanisSHORT(DBR dbr)booleanisSTRING()static booleanisSTRING(DBR dbr)booleanisSTS()static booleanisSTS(DBR dbr)booleanisTIME()static booleanisTIME(DBR dbr)voidprintInfo()voidprintInfo(PrintStream out)static voidprintValue(byte[] value)Helper method to print an array of byte as a comma separated list to the standard output stream.static voidprintValue(byte[] value, PrintStream out)Helper method to print an array of byte as a comma separated list to the specified output stream.static voidprintValue(double[] value)Helper method to print an array of double as a comma separated list to the standard output stream.static voidprintValue(double[] value, PrintStream out)Helper method to print an array of double as a comma separated list to the specified output stream.static voidprintValue(float[] value)Helper method to print an array of float as a comma separated list to the standard output stream.static voidprintValue(float[] value, PrintStream out)Helper method to print an array of float as a comma separated list to the specified output stream.static voidprintValue(int[] value)Helper method to print an array of int as a comma separated list to the standard output stream.static voidprintValue(int[] value, PrintStream out)Helper method to print an array of int as a comma separated list to the specified output stream.static voidprintValue(long[] value)Helper method to print an array of long as a comma separated list to the standard output stream.static voidprintValue(long[] value, PrintStream out)Helper method to print an array of long as a comma separated list to the specified output stream.static voidprintValue(short[] value)Helper method to print an array of short as a comma separated list to the standard output stream.static voidprintValue(short[] value, PrintStream out)Helper method to print an array of short as a comma separated list to the specified output stream.static voidprintValue(String[] value)Helper method to print an array of String as a comma separated list to the standard output stream.static voidprintValue(String[] value, PrintStream out)Helper method to print an array of String as a comma separated list to the specified output stream.protected voidsetValue(Object value)
-
-
-
Constructor Detail
-
DBR
protected DBR(Object value)
-
-
Method Detail
-
setValue
protected void setValue(Object value)
-
getType
public DBRType getType()
-
getCount
public int getCount()
-
getValue
public Object getValue()
-
convert
public abstract DBR convert(DBRType convertType) throws CAStatusException
- Throws:
CAStatusException
-
convert
public DBR convert(DBRType convertType, Object params) throws CAStatusException
- Throws:
CAStatusException
-
printInfo
public void printInfo()
-
printInfo
public void printInfo(PrintStream out)
-
isBYTE
public boolean isBYTE()
-
isSHORT
public boolean isSHORT()
-
isINT
public boolean isINT()
-
isFLOAT
public boolean isFLOAT()
-
isDOUBLE
public boolean isDOUBLE()
-
isSTRING
public boolean isSTRING()
-
isENUM
public boolean isENUM()
-
isSTS
public boolean isSTS()
-
isGR
public boolean isGR()
-
isCTRL
public boolean isCTRL()
-
isLABELS
public boolean isLABELS()
-
isTIME
public boolean isTIME()
-
isPRECSION
public boolean isPRECSION()
-
isBYTE
public static boolean isBYTE(DBR dbr)
-
isSHORT
public static boolean isSHORT(DBR dbr)
-
isINT
public static boolean isINT(DBR dbr)
-
isFLOAT
public static boolean isFLOAT(DBR dbr)
-
isDOUBLE
public static boolean isDOUBLE(DBR dbr)
-
isSTRING
public static boolean isSTRING(DBR dbr)
-
isENUM
public static boolean isENUM(DBR dbr)
-
isSTS
public static boolean isSTS(DBR dbr)
-
isGR
public static boolean isGR(DBR dbr)
-
isCTRL
public static boolean isCTRL(DBR dbr)
-
isLABELS
public static boolean isLABELS(DBR dbr)
-
isTIME
public static boolean isTIME(DBR dbr)
-
isPRECISION
public static boolean isPRECISION(DBR dbr)
-
printValue
public static void printValue(byte[] value)
Helper method to print an array of byte as a comma separated list to the standard output stream.- Parameters:
value- the array to print.
-
printValue
public static void printValue(byte[] value, PrintStream out)Helper method to print an array of byte as a comma separated list to the specified output stream.- Parameters:
value- the array to print.out- the output stream.
-
printValue
public static void printValue(short[] value)
Helper method to print an array of short as a comma separated list to the standard output stream.- Parameters:
value- the array to print.
-
printValue
public static void printValue(short[] value, PrintStream out)Helper method to print an array of short as a comma separated list to the specified output stream.- Parameters:
value- the array to print.out- the output stream.
-
printValue
public static void printValue(int[] value)
Helper method to print an array of int as a comma separated list to the standard output stream.- Parameters:
value- the array to print.
-
printValue
public static void printValue(int[] value, PrintStream out)Helper method to print an array of int as a comma separated list to the specified output stream.- Parameters:
value- the array to print.out- the output stream.
-
printValue
public static void printValue(long[] value)
Helper method to print an array of long as a comma separated list to the standard output stream.- Parameters:
value- the array to print.
-
printValue
public static void printValue(long[] value, PrintStream out)Helper method to print an array of long as a comma separated list to the specified output stream.- Parameters:
value- the array to print.out- the output stream.
-
printValue
public static void printValue(float[] value)
Helper method to print an array of float as a comma separated list to the standard output stream.- Parameters:
value- the array to print.
-
printValue
public static void printValue(float[] value, PrintStream out)Helper method to print an array of float as a comma separated list to the specified output stream.- Parameters:
value- the array to print.out- the output stream.
-
printValue
public static void printValue(double[] value)
Helper method to print an array of double as a comma separated list to the standard output stream.- Parameters:
value- the array to print.
-
printValue
public static void printValue(double[] value, PrintStream out)Helper method to print an array of double as a comma separated list to the specified output stream.- Parameters:
value- the array to print.out- the output stream.
-
printValue
public static void printValue(String[] value)
Helper method to print an array of String as a comma separated list to the standard output stream.- Parameters:
value- the array to print.
-
printValue
public static void printValue(String[] value, PrintStream out)
Helper method to print an array of String as a comma separated list to the specified output stream.- Parameters:
value- the array to print.out- the output stream.
-
-