Index: lutingenerator/src/java/org/codelutin/generator/models/Model.java diff -u /dev/null lutingenerator/src/java/org/codelutin/generator/models/Model.java:1.1 --- /dev/null Thu Nov 8 19:59:07 2007 +++ lutingenerator/src/java/org/codelutin/generator/models/Model.java Thu Nov 8 19:59:02 2007 @@ -0,0 +1,29 @@ +package org.codelutin.generator.models; + +import java.util.Map; + +public interface Model { + + /** + * Returns the name of this model. + * + * @return the name of this model. + */ + public abstract String getName(); + + /** + * Returns the tagValues associated with this element. + * For each entry, the key is the name of the tagValue, the value is the value of the tagValue :-) + * + * @return a Map containing all tagValues associated with this element + */ + public abstract Map getTagValues(); + + /** + * Returns the tagValue corresponding to the given name, or null if the element has no associated tagValue for this name. + * + * @return the value of the found tagValue, or null if the element has no associated tagValue for this name. + */ + public abstract String getTagValue(String tagValue); + +} //Model