[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Operation.java, NONE, 1.1 Command.ja
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-10-18 11:54:41
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4471/src/net/sourceforge/bprocessor/model Modified Files: Command.java Added Files: Operation.java Log Message: refactor --- NEW FILE: Operation.java --- //--------------------------------------------------------------------------------- // $Id: Operation.java,v 1.1 2007/10/18 11:54:40 henryml Exp $ // // Copyright (c) 2005 The BProcessor Team (http://bprocessor.sourceforge.net) // Released under the Lesser GNU Public License v2.1 //--------------------------------------------------------------------------------- package net.sourceforge.bprocessor.model; /** * */ public class Operation { /** * Retruns the name of this Operation * @return the name of this Operation */ public String name() { return "!"; } } Index: Command.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Command.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Command.java 18 Oct 2007 09:27:24 -0000 1.2 --- Command.java 18 Oct 2007 11:54:40 -0000 1.3 *************** *** 8,15 **** package net.sourceforge.bprocessor.model; /** * Command */ ! public class Command { ! } --- 8,33 ---- package net.sourceforge.bprocessor.model; + import java.util.LinkedList; + import java.util.List; + + /** * Command */ ! public class Command implements Parametric { ! ! /** {@inheritDoc} */ ! public List<Attribute> getAttributes() { ! List<Attribute> attributes = new LinkedList(); ! return attributes; ! } ! ! /** {@inheritDoc} */ ! public String getGeneralName() { ! return "Command"; ! } ! ! /** {@inheritDoc} */ ! public void setAttributes(List<Attribute> attributes) { ! } } |