FileDocCategorySizeDatePackage
XPathFilter2ParameterSpec.javaAPI DocJava SE 6 API2336Tue Jun 10 00:27:06 BST 2008javax.xml.crypto.dsig.spec

XPathFilter2ParameterSpec

public final class XPathFilter2ParameterSpec extends Object implements TransformParameterSpec
Parameters for the W3C Recommendation XPath Filter 2.0 Transform Algorithm. The parameters include a list of one or more {@link XPathType} objects.
author
Sean Mullan
author
JSR 105 Expert Group
since
1.6
see
Transform
see
XPathFilterParameterSpec

Fields Summary
private final List
xPathList
Constructors Summary
public XPathFilter2ParameterSpec(List xPathList)
Creates an XPathFilter2ParameterSpec.

param
xPathList a list of one or more {@link XPathType} objects. The list is defensively copied to protect against subsequent modification.
throws
ClassCastException if xPathList contains any entries that are not of type {@link XPathType}
throws
IllegalArgumentException if xPathList is empty
throws
NullPointerException if xPathList is null

	if (xPathList == null) {
	    throw new NullPointerException("xPathList cannot be null");
	}
        List xPathListCopy = new ArrayList(xPathList);
	if (xPathListCopy.isEmpty()) {
	    throw new IllegalArgumentException("xPathList cannot be empty");
	}
	int size = xPathListCopy.size();
        for (int i = 0; i < size; i++) {
            if (!(xPathListCopy.get(i) instanceof XPathType)) {
                throw new ClassCastException
                    ("xPathList["+i+"] is not a valid type");
            }
        }
	this.xPathList = Collections.unmodifiableList(xPathListCopy);
    
Methods Summary
public java.util.ListgetXPathList()
Returns a list of one or more {@link XPathType} objects.

This implementation returns an {@link Collections#unmodifiableList unmodifiable list}.

return
a List of XPathType objects (never null or empty)

	return xPathList;