Lines Matching defs:info

455     static void check(OpenMBeanParameterInfo info) throws OpenDataException {
456 OpenType<?> openType = info.getOpenType();
460 if (info.getName() == null ||
461 info.getName().trim().equals(""))
464 if (info.getDescription() == null ||
465 info.getDescription().trim().equals(""))
470 if (info.hasDefaultValue()) {
478 if (!openType.isValue(info.getDefaultValue())) {
481 info.getDefaultValue().getClass().getName() +
490 if (info.hasLegalValues() &&
491 (info.hasMinValue() || info.hasMaxValue())) {
497 if (info.hasMinValue() && !openType.isValue(info.getMinValue())) {
499 "Type of minValue [" + info.getMinValue().getClass().getName() +
503 if (info.hasMaxValue() && !openType.isValue(info.getMaxValue())) {
505 "Type of maxValue [" + info.getMaxValue().getClass().getName() +
512 if (info.hasDefaultValue()) {
513 Object defaultValue = info.getDefaultValue();
514 if (info.hasLegalValues() &&
515 !info.getLegalValues().contains(defaultValue)) {
522 if (info.hasMinValue()) {
523 if (compare(info.getMinValue(), defaultValue) > 0) {
528 if (info.hasMaxValue()) {
529 if (compare(info.getMaxValue(), defaultValue) < 0) {
538 if (info.hasLegalValues()) {
545 for (Object v : info.getLegalValues()) {
559 if (info.hasMinValue() && info.hasMaxValue()) {
560 if (compare(info.getMinValue(), info.getMaxValue()) > 0) {
937 static boolean isValue(OpenMBeanParameterInfo info, Object obj) {
938 if (info.hasDefaultValue() && obj == null)
941 info.getOpenType().isValue(obj) &&
942 (!info.hasLegalValues() || info.getLegalValues().contains(obj)) &&
943 (!info.hasMinValue() ||
944 ((Comparable) info.getMinValue()).compareTo(obj) <= 0) &&
945 (!info.hasMaxValue() ||
946 ((Comparable) info.getMaxValue()).compareTo(obj) >= 0);
1063 static int hashCode(OpenMBeanParameterInfo info) {
1065 value += info.getName().hashCode();
1066 value += info.getOpenType().hashCode();
1067 if (info.hasDefaultValue())
1068 value += info.getDefaultValue().hashCode();
1069 if (info.hasMinValue())
1070 value += info.getMinValue().hashCode();
1071 if (info.hasMaxValue())
1072 value += info.getMaxValue().hashCode();
1073 if (info.hasLegalValues())
1074 value += info.getLegalValues().hashCode();
1075 if (info instanceof DescriptorRead)
1076 value += ((DescriptorRead) info).getDescriptor().hashCode();
1113 static String toString(OpenMBeanParameterInfo info) {
1114 Descriptor d = (info instanceof DescriptorRead) ?
1115 ((DescriptorRead) info).getDescriptor() : null;
1117 info.getClass().getName() +
1118 "(name=" + info.getName() +
1119 ",openType=" + info.getOpenType() +
1120 ",default=" + info.getDefaultValue() +
1121 ",minValue=" + info.getMinValue() +
1122 ",maxValue=" + info.getMaxValue() +
1123 ",legalValues=" + info.getLegalValues() +