Update of /var/cvs/src/org/mmbase/datatypes/util/xml In directory james.mmbase.org:/tmp/cvs-serv9538
Modified Files: DataTypeDefinition.java Log Message: 'name' elements are supported (but not used), and gave warnings in the log See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/datatypes/util/xml Index: DataTypeDefinition.java =================================================================== RCS file: /var/cvs/src/org/mmbase/datatypes/util/xml/DataTypeDefinition.java,v retrieving revision 1.72 retrieving revision 1.73 diff -u -b -r1.72 -r1.73 --- DataTypeDefinition.java 14 Apr 2009 12:55:32 -0000 1.72 +++ DataTypeDefinition.java 27 Apr 2009 16:14:18 -0000 1.73 @@ -32,7 +32,7 @@ * * @author Pierre van Rooden * @author Michiel Meeuwissen - * @version $Id: DataTypeDefinition.java,v 1.72 2009/04/14 12:55:32 michiel Exp $ + * @version $Id: DataTypeDefinition.java,v 1.73 2009/04/27 16:14:18 michiel Exp $ * @since MMBase-1.8 **/ public class DataTypeDefinition { @@ -153,17 +153,20 @@ baseDataType = requestBaseDataType; getImplementation(dataTypeElement, id); + LocalizedString description = dataType.getLocalizedDescription(); DataTypeXml.getLocalizedDescription("description", dataTypeElement, description, dataType.getName()); + LocalizedString name = dataType.getLocalizedGUIName(); DataTypeXml.getLocalizedDescription("name", dataTypeElement, name, dataType.getName()); + configureConditions(dataTypeElement); configureHandlers(dataTypeElement); configureStyleClasses(dataTypeElement); return this; } - private static final java.util.regex.Pattern nonConditions = java.util.regex.Pattern.compile("specialization|datatype|class|description|handler|styleClass"); + private static final java.util.regex.Pattern nonConditions = java.util.regex.Pattern.compile("specialization|datatype|class|name|description|handler|styleClass"); /** * Configures the conditions of a datatype definition, using data from a DOM element _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs