Revision: 12367
http://sourceforge.net/p/foray/code/12367
Author: victormote
Date: 2022-01-10 02:29:56 +0000 (Mon, 10 Jan 2022)
Log Message:
-----------
Rename class for consistency and clarity.
Added Paths:
-----------
trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTokenFlow4a.java
Removed Paths:
-------------
trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTextFlow4a.java
Deleted: trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTextFlow4a.java
===================================================================
--- trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTextFlow4a.java 2022-01-10 01:54:04 UTC (rev 12366)
+++ trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTextFlow4a.java 2022-01-10 02:29:56 UTC (rev 12367)
@@ -1,123 +0,0 @@
-/*
- * Copyright 2021 The FOray Project.
- * http://www.foray.org
- *
- * 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.
- *
- * This work is in part derived from the following work(s), used with the
- * permission of the licensor:
- * Apache FOP, licensed by the Apache Software Foundation
- *
- */
-
-/*
- * $LastChangedRevision$
- * $LastChangedDate$
- * $LastChangedBy$
- */
-
-package org.foray.fotree.fo.obj;
-
-import org.foray.common.para.ParaBranch4aIterator;
-
-import org.axsl.common.para.ParaBranch;
-import org.axsl.common.para.ParaLeaf;
-import org.axsl.common.para.ParaNode;
-import org.axsl.fotree.text.FoToken;
-import org.axsl.fotree.text.FoTokenFlow;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.ListIterator;
-
-/**
- * FOray implementation of {@link FoTokenFlow}.
- */
-public class FoTextFlow4a implements FoTokenFlow, ParaBranch {
-
- /** The tokens (children) of this token flow. */
- private List<FoToken> tokens = new ArrayList<FoToken>();
-
- @Override
- public int qtyTokens() {
- return this.tokens.size();
- }
-
- @Override
- public FoToken tokenAt(final int index) {
- return this.tokens.get(index);
- }
-
- @Override
- public void addToken(final FoToken segment) {
- this.tokens.add(segment);
- }
-
- @Override
- public Type getParaNodeType() {
- return Type.BRANCH;
- }
-
- @Override
- public ParaLeaf asParaLeaf() {
- return null;
- }
-
- @Override
- public ParaBranch asParaBranch() {
- return this;
- }
-
- @Override
- public int qtyKpLeaves() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public CharSequence getText() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public int qtyParaNodes() {
- return this.tokens.size();
- }
-
- @Override
- public ParaNode paraNodeAt(final int nodeIndex) {
- return (ParaNode) this.tokens.get(nodeIndex);
- }
-
- @Override
- public void addNode(final ParaNode node) {
- this.tokens.add((FoToken) node);
- }
-
- @Override
- public int qtyParaLeaves() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- @Override
- public ParaLeaf paraLeafAt(final int leafIndex) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public ListIterator<ParaLeaf> leafIterator() {
- return new ParaBranch4aIterator(this);
- }
-
-}
Copied: trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTokenFlow4a.java (from rev 12365, trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTextFlow4a.java)
===================================================================
--- trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTokenFlow4a.java (rev 0)
+++ trunk/foray/foray-fotree/src/main/java/org/foray/fotree/fo/obj/FoTokenFlow4a.java 2022-01-10 02:29:56 UTC (rev 12367)
@@ -0,0 +1,123 @@
+/*
+ * Copyright 2021 The FOray Project.
+ * http://www.foray.org
+ *
+ * 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.
+ *
+ * This work is in part derived from the following work(s), used with the
+ * permission of the licensor:
+ * Apache FOP, licensed by the Apache Software Foundation
+ *
+ */
+
+/*
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ * $LastChangedBy$
+ */
+
+package org.foray.fotree.fo.obj;
+
+import org.foray.common.para.ParaBranch4aIterator;
+
+import org.axsl.common.para.ParaBranch;
+import org.axsl.common.para.ParaLeaf;
+import org.axsl.common.para.ParaNode;
+import org.axsl.fotree.text.FoToken;
+import org.axsl.fotree.text.FoTokenFlow;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.ListIterator;
+
+/**
+ * FOray implementation of {@link FoTokenFlow}.
+ */
+public class FoTokenFlow4a implements FoTokenFlow {
+
+ /** The tokens (children) of this token flow. */
+ private List<FoToken> tokens = new ArrayList<FoToken>();
+
+ @Override
+ public int qtyTokens() {
+ return this.tokens.size();
+ }
+
+ @Override
+ public FoToken tokenAt(final int index) {
+ return this.tokens.get(index);
+ }
+
+ @Override
+ public void addToken(final FoToken segment) {
+ this.tokens.add(segment);
+ }
+
+ @Override
+ public Type getParaNodeType() {
+ return Type.BRANCH;
+ }
+
+ @Override
+ public ParaLeaf asParaLeaf() {
+ return null;
+ }
+
+ @Override
+ public ParaBranch asParaBranch() {
+ return this;
+ }
+
+ @Override
+ public int qtyKpLeaves() {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public CharSequence getText() {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public int qtyParaNodes() {
+ return this.tokens.size();
+ }
+
+ @Override
+ public ParaNode paraNodeAt(final int nodeIndex) {
+ return (ParaNode) this.tokens.get(nodeIndex);
+ }
+
+ @Override
+ public void addNode(final ParaNode node) {
+ this.tokens.add((FoToken) node);
+ }
+
+ @Override
+ public int qtyParaLeaves() {
+ // TODO Auto-generated method stub
+ return 0;
+ }
+
+ @Override
+ public ParaLeaf paraLeafAt(final int leafIndex) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ @Override
+ public ListIterator<ParaLeaf> leafIterator() {
+ return new ParaBranch4aIterator(this);
+ }
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|