[CJ-dev] commonjava-projects/commonjava-opl/projects/opl-xdoclet/maven-plugin/test-project/src/java/
Brought to you by:
johnqueso
Update of /cvsroot/commonjava/commonjava-projects/commonjava-opl/projects/opl-xdoclet/maven-plugin/test-project/src/java/org/commonjava/opl/xdoclet/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2341/projects/opl-xdoclet/maven-plugin/test-project/src/java/org/commonjava/opl/xdoclet/test Added Files: TestConfig.java TestSubConfigConsumer.java TestSubConfig.java Log Message: working toward a maven plugin using opldoclet, and also fixed a minor irritation with xml attributes containing dashes. --- NEW FILE: TestSubConfigConsumer.java --- /* Created on Mar 7, 2004 */ package org.commonjava.opl.xdoclet.test; /** * @author jdcasey */ public interface TestSubConfigConsumer { public void setTestSubConfig(TestSubConfig config); } --- NEW FILE: TestConfig.java --- /* Created on Mar 7, 2004 */ package org.commonjava.opl.xdoclet.test; /** * @opl.parser node="config" root="true" * @opl.parent-of ref="subConfig" maxOccurs="1" minOccurs="0" * @opl.aux-import import="org.commonjava.util.Strings" * @opl.implements class="org.commonjava.opl.xdoclet.test.TestSubConfigConsumer" * @opl.properties-container delegate="false" */ public class TestConfig implements TestSubConfigConsumer{ public TestConfig() { } /** * @opl.attribute * name="testReqResStringBeforeChildren" * required="true" * resolve-value="true" * type="string" * before-children="true" */ public void testReqResStringBeforeChildren(String param1){ } /** * @opl.attribute * name="testNonReqNonResIntExtractAfterChildren" * required="false" * resolve-value="false" * type="int" * extractor="Strings.toInteger(@@value).intValue()" * before-children="false" */ public void testNonReqNonResIntExtractAfterChildren(int param2){ } /** * @opl.delegate */ public void delegatedMethod(Boolean bParam){ } /** * @opl.delegate */ public void setTestSubConfig(TestSubConfig config){} } --- NEW FILE: TestSubConfig.java --- /* Created on Mar 7, 2004 */ package org.commonjava.opl.xdoclet.test; import java.util.Properties; import org.commonjava.opl.generics.properties.PropertiesContainer; /** * @opl.parser node="subConfig" * @opl.aux-import import="org.commonjava.util.Strings" * @opl.properties-container delegate="true" * @opl.child-of * class="org.commonjava.opl.xdoclet.test.TestSubConfigConsumer" * required="true" * setter="setTestSubConfig(@@value)" */ public class TestSubConfig implements PropertiesContainer{ private Properties properties; public TestSubConfig() { } /** * @opl.attribute * name="testNonReqNonResIntExtractValidateAfterChildren" * required="false" * resolve-value="false" * type="int" * extractor="Strings.toInteger(@@value).intValue()" * validator="@@value > 0" * before-children="false" */ public void testNonReqNonResIntExtractValidateAfterChildren(int param4){ } /** * @opl.attribute * name="testNonReqResIntExtractValidateBeforeChildren" * required="false" * type="int" * extractor="Strings.toInteger(@@value).intValue()" * validator="@@value > 0" * before-children="true" */ public void testNonReqResIntExtractValidateBeforeChildren(int param4){ } /** * @opl.attribute * name="testReqResStringBeforeChildren" * required="true" * resolve-value="true" * type="string" * before-children="true" */ public void testReqResStringBeforeChildren(String param3){ } /** * @opl.attribute * name="testBodyNonReqIntExtractValidateBeforeChildren" * use-body="true" * required="false" * type="int" * extractor="Strings.toInteger(@@value).intValue()" * validator="@@value > 0" * before-children="true" */ public void testBodyNonReqIntExtractValidateBeforeChildren(int param4){ } /** * @opl.delegate */ public void delegatedMethod(Boolean bParam){ } /** * @opl.delegate */ public void setProperties(Properties props){ this.properties = props; } /** * @opl.delegate */ public Properties getProperties(){ return this.properties; } } |