Update of /var/cvs/src/org/mmbase/datatypes
In directory james.mmbase.org:/tmp/cvs-serv30696
Modified Files:
DataType.java BasicDataType.java
Log Message:
I want to fix MMB-1589 along these lines. So by uncoupling actual HTML
generation and form-handling from mm:fieldinfo, and coupling that directly to
the datatypes. mm:fieldinfo will only have to provide a 'Request'
implementation to reproduce the current functionality.
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/datatypes
See also: http://www.mmbase.org/jira/browse/MMB-1589
Index: DataType.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/datatypes/DataType.java,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -b -r1.66 -r1.67
--- DataType.java 24 Apr 2008 11:49:55 -0000 1.66
+++ DataType.java 9 Jul 2008 22:08:34 -0000 1.67
@@ -32,7 +32,7 @@
* @author Pierre van Rooden
* @author Michiel Meeuwissen
* @since MMBase-1.8
- * @version $Id: DataType.java,v 1.66 2008/04/24 11:49:55 michiel Exp $
+ * @version $Id: DataType.java,v 1.67 2008/07/09 22:08:34 michiel Exp $
* @param <C> Class this DataType
*/
@@ -371,6 +371,11 @@
public void toXml(org.w3c.dom.Element element);
/**
+ * @since MMBase-1.9.1
+ */
+ public Handler getHandler(String mimeType);
+
+ /**
* A restriction controls (one aspect of) the acceptable values of a
DataType. A DataType generally has several restrictions.
* @param <D> Type of Value describing the restriction
*/
Index: BasicDataType.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/datatypes/BasicDataType.java,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -b -r1.86 -r1.87
--- BasicDataType.java 9 Jun 2008 10:20:35 -0000 1.86
+++ BasicDataType.java 9 Jul 2008 22:08:34 -0000 1.87
@@ -38,7 +38,7 @@
* @author Pierre van Rooden
* @author Michiel Meeuwissen
* @since MMBase-1.8
- * @version $Id: BasicDataType.java,v 1.86 2008/06/09 10:20:35 michiel Exp $
+ * @version $Id: BasicDataType.java,v 1.87 2008/07/09 22:08:34 michiel Exp $
*/
public class BasicDataType<C> extends AbstractDescriptor implements
DataType<C>, Cloneable, Comparable<DataType<C>>, Descriptor {
@@ -697,6 +697,10 @@
}
+ public Handler getHandler(String mimeType) {
+ throw new UnsupportedOperationException("Not yet ready");
+ }
+
public int compareTo(DataType<C> a) {
int compared = getName().compareTo(a.getName());
if (compared == 0) compared =
getTypeAsClass().getName().compareTo(a.getTypeAsClass().getName());
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs