01: package com.etymon.pj.object.pagemark;
02:
03: import java.io.*;
04: import java.util.*;
05: import com.etymon.pj.*;
06: import com.etymon.pj.object.*;
07:
08: /**
09: A page marking object.
10: @author Nassib Nassar
11: */
12: public abstract class PageMarkObject extends PageMark {
13:
14: protected Vector cloneVector() throws CloneNotSupportedException {
15: Vector v = new Vector(_operators.size());
16: Enumeration m = _operators.elements();
17: while (m.hasMoreElements()) {
18: Object value = m.nextElement();
19: if (value instanceof PjObject) {
20: v.addElement(((PjObject) value).clone());
21: } else {
22: throw new CloneNotSupportedException(
23: "Object in array is not a PjObject.");
24: }
25: }
26: return v;
27: }
28:
29: protected Vector _operators;
30:
31: }
|