From: Glen Mazza Date: Mon, 6 Sep 2004 20:54:59 +0000 (+0000) Subject: PR: X-Git-Tag: Root_Temp_KnuthStylePageBreaking~578 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=34e8a822a119b54fdc63dcc806cc79ae6e74266a;p=xmlgraphics-fop.git PR: Obtained from: Submitted by: Reviewed by: Removal of unused/obsolete XMLElement.java. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197913 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/Unknown.java b/src/java/org/apache/fop/fo/Unknown.java index e3d063a86..3be0727fe 100644 --- a/src/java/org/apache/fop/fo/Unknown.java +++ b/src/java/org/apache/fop/fo/Unknown.java @@ -19,8 +19,8 @@ package org.apache.fop.fo; /** - * Class for handling an unknown element, for example one from an unsupported - * namespace. + * Class for handling an unknown element from a namespace recognized + * by FOP. * This prevents any further problems arising from the unknown * data. */ @@ -47,8 +47,4 @@ public class Unknown extends FONode { public Unknown(FONode parent) { super(parent); } - - private void setup() { - getLogger().debug("Layout Unknown element"); - } } diff --git a/src/java/org/apache/fop/fo/UnknownXMLObj.java b/src/java/org/apache/fop/fo/UnknownXMLObj.java index e768973c3..cc289bf22 100644 --- a/src/java/org/apache/fop/fo/UnknownXMLObj.java +++ b/src/java/org/apache/fop/fo/UnknownXMLObj.java @@ -34,10 +34,10 @@ public class UnknownXMLObj extends XMLObj { /** * Construct the Maker - * @param sp the namespace for this Maker + * @param ns the namespace for this Maker */ - public Maker(String sp) { - space = sp; + public Maker(String ns) { + space = ns; } /** diff --git a/src/java/org/apache/fop/fo/XMLElement.java b/src/java/org/apache/fop/fo/XMLElement.java deleted file mode 100644 index 4f9431c3e..000000000 --- a/src/java/org/apache/fop/fo/XMLElement.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 1999-2004 The Apache Software Foundation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* $Id$ */ - -package org.apache.fop.fo; - -// XML -import org.xml.sax.Attributes; -import org.xml.sax.Locator; -import org.xml.sax.SAXParseException; - -/** - * class representing svg:svg pseudo flow object. - */ -public class XMLElement extends XMLObj { - - private String namespace = ""; - - /** - * constructs an XML object (called by Maker). - * - * @param parent the parent formatting object - */ - public XMLElement(FONode parent) { - super(parent); - } - - /** - * @see org.apache.fop.fo.FONode#processNode - */ - public void processNode(String elementName, Locator locator, - Attributes attlist) throws SAXParseException { - super.processNode(elementName, locator, attlist); - init(); - } - - private void init() { - createBasicDocument(); - } - - /** - * Public accessor for the namespace. - * @return the namespace for this element - */ - public String getNameSpace() { - return namespace; - } -}