Package java.util

Examples of java.util.Vector.clone()


        String superclassName = ((TypeMetaclass) getParent()).getExtendedClassName();
        Vector impl_interfaces = ((TypeMetaclass) getParent()).getImplementedInterfaces();
        if (impl_interfaces != null)
        {
            impl_interfaces = (Vector) impl_interfaces.clone();
        }
        else
        {
            impl_interfaces = new Vector();
        }
View Full Code Here


                        (NodePermission) tempEnum.nextElement();
                    tempPermission.validate(uri.toString());
                    permissionsVector.addElement(tempPermission);
                }
                permissionsCache.put(uri.toString(), permissionsVector);
                return ((Vector) permissionsVector.clone()).elements();
            }
        } else {
            return super.enumeratePermissions(uri);
        }
    }
View Full Code Here

                }
                locksCache.put(uri.toString(), locksVector);
            } else {
                locksVector = (Vector) value;
            }
            return ((Vector) locksVector.clone()).elements();
        } else {
            return super.enumerateLocks(uri);
        }
    }
   
View Full Code Here

    protected void copyEventListeners(NodeImpl src, NodeImpl tgt) {
        Vector nodeListeners = getEventListeners(src);
  if (nodeListeners == null) {
      return;
  }
  setEventListeners(tgt, (Vector) nodeListeners.clone());
    }

    /**
     * Introduced in DOM Level 2. <p>
     * Distribution engine for DOM Level 2 Events.
View Full Code Here

        boolean isCloned = false;
        for(int i = 0; i < size; i++) {
            RenderedImage img = (RenderedImage)sourceVector.get(i);
            if(!(img instanceof Serializable)) {
                if(!isCloned) {
                    sourceVector = (Vector)sourceVector.clone();
                }
                sourceVector.set(i, new SerializableRenderedImage(img, false));
            }
        }
        return sourceVector;
View Full Code Here

     * <code>ParameterBlock</code> of this node.
     */
    public synchronized Vector getParameters() {
        // In the Sun JDK ParameterBlock the parameter Vector is never null.
        Vector params = nodeSupport.getParameterBlock().getParameters();
        return params == null ? null : (Vector)params.clone();
    }

    /**
     * Returns the specified parameter stored in the
     * <code>ParameterBlock</code> of this node as a <code>byte</code>.
View Full Code Here

     * <code>ParameterBlock</code> of this node.
     * This may differ from the source vector of the rendering of the node.
     */
    public synchronized Vector getSources() {
        Vector srcs = nodeSupport.getParameterBlock().getSources();
        return srcs == null ? null : (Vector)srcs.clone();
    }

    /**
     * Replaces the sources in the <code>ParameterBlock</code> of this node
     * with a new list of sources.
View Full Code Here

                        tempPermission.validate(uri.toString());
                        permissionsVector.addElement(tempPermission);
                    }
                    permissionsCache.put(uri.toString(), permissionsVector);
                }
                return ((Vector) permissionsVector.clone()).elements();
            } finally {
                if (isForceStoreEnlistment(uri)) {
                    delist(this);
                }
            }
View Full Code Here

                    }
                    locksCache.put(uri.toString(), locksVector);
                } else {
                    locksVector = (Vector) value;
                }
                return ((Vector) locksVector.clone()).elements();
            } finally {
                if (isForceStoreEnlistment(uri)) {
                    delist(this);
                }
            }
View Full Code Here

                // append the current decision point list to the list below it
                // on the stack (the list of exit points), and restore the
                // current decision point list to its state before the () expression
                for (int i = 0; i < decisionPointList.size(); i++)
                    oneDown.addElement(decisionPointList.elementAt(i));
                decisionPointList = (Vector)twoDown.clone();
            }

            // a ) marks the end of a sequence of characters.  We do one of two things
            // depending on whether the sequence repeats (i.e., whether the ) is followed
            // by *):  If the sequence doesn't repeat, then the exit-point list is merged
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.