/** * Each annotation can provide a class which is used to determine * which label is used to serialize an object. This ensures that * the correct label is selected whenever serialization occurs. * * @param element this is the annotation to extract the type for * * @return this returns the class associated with the annotation */ public Class getType(ElementMap element) { return element.valueType(); } }
/** * Each annotation can provide a class which is used to determine * which label is used to serialize an object. This ensures that * the correct label is selected whenever serialization occurs. * * @param element this is the annotation to extract the type for * * @return this returns the class associated with the annotation */ public Class getType(ElementMap element) { return element.valueType(); } }
/** * Each annotation can provide a class which is used to determine * which label is used to serialize an object. This ensures that * the correct label is selected whenever serialization occurs. * * @param element this is the annotation to extract the type for * * @return this returns the class associated with the annotation */ public Class getType(ElementMap element) { return element.valueType(); } }
/** * This is used to acquire the dependent value for the annotated * map. This will simply return the type that the map object is * composed to hold. This must be a serializable type, that is, * it must be a composite or supported primitive type. * * @return this returns the value object type for the map object */ protected Type getValueType() throws Exception { if(valueType == null) { valueType = label.valueType(); if(valueType == void.class) { valueType = getDependent(1); } } return new ClassType(valueType); }
/** * This is used to acquire the dependent value for the annotated * map. This will simply return the type that the map object is * composed to hold. This must be a serializable type, that is, * it must be a composite or supported primitive type. * * @return this returns the value object type for the map object */ protected Type getValueType() throws Exception { if(valueType == null) { valueType = label.valueType(); if(valueType == void.class) { valueType = getDependent(1); } } return new ClassType(valueType); }
/** * This is used to acquire the dependent value for the annotated * map. This will simply return the type that the map object is * composed to hold. This must be a serializable type, that is, * it must be a composite or supported primitive type. * * @return this returns the value object type for the map object */ protected Type getValueType() throws Exception { if(valueType == null) { valueType = label.valueType(); if(valueType == void.class) { valueType = getDependent(1); } } return new ClassType(valueType); }