diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2006-08-17 18:32:50 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2006-08-17 18:32:50 +0000 |
commit | 999ad169a6ece7edd6463aa6fb345b70fb6a99ef (patch) | |
tree | 74f2a19431666c41925121c3e318e6f5efd0a8a6 | |
parent | c0629f5bcbe3822de77b0b5d083353729e9f72d2 (diff) | |
download | xmlgraphics-fop-999ad169a6ece7edd6463aa6fb345b70fb6a99ef.tar.gz xmlgraphics-fop-999ad169a6ece7edd6463aa6fb345b70fb6a99ef.zip |
Cleanup: removed obsolete class
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@432325 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/fo/expr/FopPropValFunction.java | 58 | ||||
-rw-r--r-- | src/java/org/apache/fop/fo/expr/PropertyParser.java | 2 |
2 files changed, 0 insertions, 60 deletions
diff --git a/src/java/org/apache/fop/fo/expr/FopPropValFunction.java b/src/java/org/apache/fop/fo/expr/FopPropValFunction.java deleted file mode 100644 index 47f5afd92..000000000 --- a/src/java/org/apache/fop/fo/expr/FopPropValFunction.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You 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.expr; - -import org.apache.fop.fo.FOPropertyMapping; -import org.apache.fop.fo.properties.Property; - - -/** - * This appears to be an artificial function, which handles the specified - * or initial value of the property on this object. - */ -public class FopPropValFunction extends FunctionBase { - - /** - * @return 1 (the maximum number of arguments) - */ - public int nbArgs() { - return 1; - } - - /** - * - * @param args array of arguments, which should either be empty, or the - * first of which should be an NCName corresponding to a property name - * @param pInfo PropertyInfo object to be evaluated - * @return the Property corresponding to the input - * @throws PropertyException for incorrect parameters - */ - public Property eval(Property[] args, - PropertyInfo pInfo) throws PropertyException { - String propName = args[0].getString(); - if (propName == null) { - throw new PropertyException("Incorrect parameter to _int-property-value function"); - } - - int propId = FOPropertyMapping.getPropertyId(propName); - return pInfo.getPropertyList().get(propId); - } - -} diff --git a/src/java/org/apache/fop/fo/expr/PropertyParser.java b/src/java/org/apache/fop/fo/expr/PropertyParser.java index 77b35a845..699094cc7 100644 --- a/src/java/org/apache/fop/fo/expr/PropertyParser.java +++ b/src/java/org/apache/fop/fo/expr/PropertyParser.java @@ -62,8 +62,6 @@ public final class PropertyParser extends PropertyTokenizer { new PPColWidthFunction()); FUNCTION_TABLE.put("label-end", new LabelEndFunction()); FUNCTION_TABLE.put("body-start", new BodyStartFunction()); - // NOTE: used from code generated for corresponding properties - FUNCTION_TABLE.put("_fop-property-value", new FopPropValFunction()); /** * * NOT YET IMPLEMENTED!!! |