1 package com.etymon.pj.object; 2 3 import java.util.*; 4 5 9 public class PjProcSet 10 extends PjArray { 11 12 15 public PjProcSet() { 16 super(); 17 } 18 19 23 public PjProcSet(Vector v) { 24 super(v); 25 } 26 27 33 public static boolean isLike(PjArray array) { 34 Enumeration m = array._v.elements(); 36 PjName name; 37 Object obj; 38 while (m.hasMoreElements()) { 39 obj = m.nextElement(); 40 if ( ! (obj instanceof PjName) ) { 41 return false; 42 } 43 name = (PjName)obj; 44 if ( ( ! name.equals(PjName.PDF) ) && 45 ( ! name.equals(PjName.TEXT) ) && 46 ( ! name.equals(PjName.IMAGEB) ) && 47 ( ! name.equals(PjName.IMAGEC) ) && 48 ( ! name.equals(PjName.IMAGEI) ) ) { 49 return false; 50 } 51 } 52 return true; 53 } 54 55 60 public Object clone() throws CloneNotSupportedException { 61 return new PjProcSet(cloneVector()); 62 } 63 64 } 65 | Popular Tags |