getResourceByPart
public final Resource getResourceByPart(ResourceSet resourceSet,
Part part)
throws java.lang.IllegalAccessException,
java.lang.NoSuchFieldException
Identifies and returns a Resource within a ResourceSet using parition keys.
This is the official CIP4 reference implementation of the XJDF partitioning algorithm.
- Parameters:
resourceSet - The ResourceSet containing a set of partitioned Resources.
part - The given Partition Keys used to identify a particular Resource
- Returns:
- The Resource identified using partition keys.
- Throws:
java.lang.IllegalAccessException - Is thrown in case the partition isn't accessible in Part class.
java.lang.NoSuchFieldException - Is thrown in case the partition key wasn't found in Part class.