Lines Matching defs:data
108 // basic types do not require data mapping
124 throw new OpenDataException("Recursive data structure");
145 public static Object toOpenTypeData(Object data, Type t)
147 if (data == null) {
151 return mt.toOpenTypeData(data);
186 // Basic Types - Classes that do not require data conversion
211 Object toOpenTypeData(Object data) throws OpenDataException {
212 return data;
215 Object toJavaTypeData(Object data)
218 return data;
245 Object toOpenTypeData(Object data) throws OpenDataException {
246 return ((Enum) data).name();
249 Object toJavaTypeData(Object data)
253 return Enum.valueOf(enumClass, (String) data);
258 (String) data + " is missing");
317 Object toOpenTypeData(Object data) throws OpenDataException {
319 // return the data as no conversion is needed.
322 return data;
325 final Object[] array = (Object[]) data;
342 Object toJavaTypeData(Object data)
346 // return the data as no conversion is needed.
348 return data;
351 final Object[] openArray = (Object[]) data;
459 Object toOpenTypeData(Object data) throws OpenDataException {
460 final List<Object> list = (List<Object>) data;
472 Object toJavaTypeData(Object data)
475 final Object[] openArray = (Object[]) data;
540 Object toOpenTypeData(Object data) throws OpenDataException {
541 final Map<Object,Object> map = (Map<Object,Object>) data;
558 Object toJavaTypeData(Object data)
561 final TabularData td = (TabularData) data;
587 // The composite data view for this class will contain one
601 // constructing the composite data for the "foo" attribute.
693 Object toOpenTypeData(Object data) throws OpenDataException {
694 if (data instanceof MemoryUsage) {
695 return MemoryUsageCompositeData.toCompositeData((MemoryUsage) data);
698 if (data instanceof ThreadInfo) {
699 return ThreadInfoCompositeData.toCompositeData((ThreadInfo) data);
702 if (data instanceof LockInfo) {
703 if (data instanceof java.lang.management.MonitorInfo) {
704 return MonitorInfoCompositeData.toCompositeData((MonitorInfo) data);
706 return LockDataConverter.toLockInfoCompositeData((LockInfo) data);
709 if (data instanceof MemoryNotificationInfo) {
711 toCompositeData((MemoryNotificationInfo) data);
714 if (data instanceof VMOption) {
715 return VMOptionCompositeData.toCompositeData((VMOption) data);
723 CompositeData cd = (CompositeData) data;
734 Object toJavaTypeData(Object data)
738 throw new AssertionError("Does not support data conversion");
742 return fromMethod.invoke(null, data);