Commits

Anonymous committed 03209db

fixed dependencies

Comments (0)

Files changed (4)

+syntax: glob
+.classpath
+.project
+.settings
+target
+doc
+output
Add a comment to this file

bin/org/xmlcml/declaratron/stmml/stmml/CMLClassVisitor.class

Binary file removed.

src/main/java/org/xmlcml/declaratron/stmml/stmml/CMLClassVisitor.java

-package org.xmlcml.declaratron.stmml.stmml;
-
-import nu.xom.Element;
-
-import org.xmlcml.cml.base.CMLConstants;
-import org.xmlcml.cml.base.CMLElement;
-import org.xmlcml.semantic.NodeUtils;
-import org.xmlcml.semantic.visitors.AbstractElementVisitor;
-import org.xmlcml.semantic.visitors.Executable;
-
-public class CMLClassVisitor extends AbstractElementVisitor {
-	String namespace = CMLConstants.CML_NS;
-
-	public final static String TAG = "cmlClassVisitor";
-	
-	public CMLClassVisitor( ) {
-		this (new Element(TAG));
-	}
-	
-	public CMLClassVisitor( Element e )	{
-		super( e , TAG);
-	}
-
-	public Element visitElementWithoutDescent( Element e) {
-		visitedNodesList.add(e);
-		//If we're namespaced and it's wrong, do nothing
-		if( namespace != null && ! namespace.equals(e.getNamespaceURI())) return e;
-		if( e instanceof CMLElement ) return e;
-		try {
-			CMLElement newElement = CMLElement.createCMLElement( e );
-			NodeUtils.copyAttributes( e, newElement );
-			changedNodesList.add(e);
-			return newElement;
-		} catch( Exception ex )	{
-			failedNodesList.add(e);
-			log.fatal("Couldn't make CML element: " + e.toXML(), ex );
-		}
-		return e;
-	}
-}

src/test/java/org/xmlcml/declaratron/stmml/stmml/Fixtures.java

+package org.xmlcml.declaratron.stmml.stmml;
+
+public class Fixtures {
+	public final static String MATHML_DIR = "math"; // FIXME
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.