public class EventPropertyValidator
extends java.lang.Object
Title: Structured Data Objects
Description: Defines a validator for EventProperty
objects.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Constructor and Description |
---|
EventPropertyValidator() |
Modifier and Type | Method and Description |
---|---|
static java.math.BigDecimal |
checkBigDecimalValue(java.lang.Object propertyValue) |
static boolean |
checkBooleanValue(java.lang.Object propertyValue) |
static byte |
checkByteValue(java.lang.Object propertyValue) |
static double |
checkDoubleValue(java.lang.Object propertyValue) |
static float |
checkFloatValue(java.lang.Object propertyValue) |
static int |
checkIntValue(java.lang.Object propertyValue) |
static long |
checkLongValue(java.lang.Object propertyValue) |
static short |
checkShortValue(java.lang.Object propertyValue) |
static java.lang.String |
checkStringValue(java.lang.Object propertyValue) |
static java.lang.Object |
checkValue(java.lang.Class propertyClass,
java.lang.Object propertyValue) |
static java.lang.Object |
checkValue(PropertyType propertyType,
java.lang.Object propertyValue) |
static int |
getBigDecimalPrecision(EventDatagram datagram,
java.lang.String propertyName) |
static int |
getBigDecimalPrecision(java.lang.Object value) |
static int |
getBigDecimalScale(EventDatagram datagram,
java.lang.String propertyName) |
static int |
getBigDecimalScale(java.lang.Object value) |
static java.lang.Object |
getDefaultValue(java.lang.Class propertyClass) |
static java.lang.Object |
getDefaultValue(PropertyType propertyType) |
static java.math.BigDecimal |
makeBigDecimalTemplate(int precision,
int scale) |
public static java.lang.Object checkValue(java.lang.Class propertyClass, java.lang.Object propertyValue) throws SDOPropertyException
SDOPropertyException
public static java.lang.Object checkValue(PropertyType propertyType, java.lang.Object propertyValue) throws SDOPropertyException
SDOPropertyException
public static boolean checkBooleanValue(java.lang.Object propertyValue) throws SDOPropertyException
SDOPropertyException
public static byte checkByteValue(java.lang.Object propertyValue) throws SDOPropertyException
SDOPropertyException
public static short checkShortValue(java.lang.Object propertyValue) throws SDOPropertyException
SDOPropertyException
public static int checkIntValue(java.lang.Object propertyValue) throws SDOPropertyException
SDOPropertyException
public static long checkLongValue(java.lang.Object propertyValue) throws SDOPropertyException
SDOPropertyException
public static float checkFloatValue(java.lang.Object propertyValue) throws SDOPropertyException
SDOPropertyException
public static double checkDoubleValue(java.lang.Object propertyValue) throws SDOPropertyException
SDOPropertyException
public static java.math.BigDecimal checkBigDecimalValue(java.lang.Object propertyValue) throws SDOPropertyException
SDOPropertyException
public static java.lang.String checkStringValue(java.lang.Object propertyValue) throws SDOPropertyException
SDOPropertyException
public static java.lang.Object getDefaultValue(java.lang.Class propertyClass) throws SDOPropertyException
SDOPropertyException
public static java.lang.Object getDefaultValue(PropertyType propertyType)
public static int getBigDecimalPrecision(EventDatagram datagram, java.lang.String propertyName) throws SDOException
SDOException
public static int getBigDecimalPrecision(java.lang.Object value)
public static int getBigDecimalScale(EventDatagram datagram, java.lang.String propertyName) throws SDOException
SDOException
public static int getBigDecimalScale(java.lang.Object value)
public static java.math.BigDecimal makeBigDecimalTemplate(int precision, int scale)
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.