From: <st...@us...> - 2007-07-13 14:40:13
|
Revision: 4673 http://svn.sourceforge.net/smartfrog/?rev=4673&view=rev Author: steve_l Date: 2007-07-13 07:40:12 -0700 (Fri, 13 Jul 2007) Log Message: ----------- tweak to get CDL building again. it wont work, but it will compile Modified Paths: -------------- trunk/core/extras/cdl/src/org/smartfrog/sfcore/languages/cdl/SFParser.java Modified: trunk/core/extras/cdl/src/org/smartfrog/sfcore/languages/cdl/SFParser.java =================================================================== --- trunk/core/extras/cdl/src/org/smartfrog/sfcore/languages/cdl/SFParser.java 2007-07-13 14:39:14 UTC (rev 4672) +++ trunk/core/extras/cdl/src/org/smartfrog/sfcore/languages/cdl/SFParser.java 2007-07-13 14:40:12 UTC (rev 4673) @@ -32,6 +32,7 @@ import org.smartfrog.sfcore.componentdescription.ComponentDescription; import java.io.InputStream; +import java.io.Reader; /** * This is a parser for CDL XML streams. The base SFParser class contains some @@ -43,6 +44,7 @@ */ public class SFParser implements StreamLanguageParser { + private static final String NOT_IMPLEMENTED = "Not implemented"; /** * Parses component(s) from an input stream. Returns a root component which @@ -110,7 +112,7 @@ */ public ReferencePhases sfParseReference(InputStream is) throws SmartFrogParseException { //TODO - throw new SmartFrogParseException("Not implemented"); + throw new SmartFrogParseException(NOT_IMPLEMENTED); } /** @@ -124,7 +126,7 @@ public Object sfParseAnyValue(InputStream is) throws SmartFrogParseException { //TODO - throw new SmartFrogParseException("Not implemented"); + throw new SmartFrogParseException(NOT_IMPLEMENTED); } /** @@ -138,12 +140,43 @@ public Object sfParsePrimitiveValue(InputStream is) throws SmartFrogParseException { //TODO - throw new SmartFrogParseException("Not implemented"); + throw new SmartFrogParseException(NOT_IMPLEMENTED); } - public Object sfParseTags(InputStream is) throws SmartFrogParseException { + protected void notImplemented() throws SmartFrogParseException { //TODO - throw new SmartFrogParseException("Not implemented"); + throw new SmartFrogParseException(NOT_IMPLEMENTED); } + + + public Phases sfParse(Reader reader) throws SmartFrogParseException { + //TODO + throw new SmartFrogParseException(NOT_IMPLEMENTED); + } + + public Phases sfParse(Reader reader, String codebase) throws SmartFrogParseException { + //TODO + throw new SmartFrogParseException(NOT_IMPLEMENTED); + } + + public ReferencePhases sfParseReference(Reader reader) throws SmartFrogParseException { + //TODO + throw new SmartFrogParseException(NOT_IMPLEMENTED); + } + + public Object sfParseAnyValue(Reader reader) throws SmartFrogParseException { + //TODO + throw new SmartFrogParseException(NOT_IMPLEMENTED); + } + + public Object sfParsePrimitiveValue(Reader reader) throws SmartFrogParseException { + //TODO + throw new SmartFrogParseException(NOT_IMPLEMENTED); + } + + public Object sfParseTags(Reader reader) throws SmartFrogParseException { + //TODO + throw new SmartFrogParseException(NOT_IMPLEMENTED); + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |