org.eclipse.higgins.idas.common
Class DereferenceAttrValuesExtension

java.lang.Object
  extended by org.eclipse.higgins.idas.common.DereferenceAttrValuesExtension
All Implemented Interfaces:
org.eclipse.higgins.idas.api.IExtension

public class DereferenceAttrValuesExtension
extends Object
implements org.eclipse.higgins.idas.api.IExtension

Specifies a set of attribute IDs and/or attribute value types which, when encountered during certain IdAS operations will be examined for values which are pointers to other resources, and in which case, will be dereferenced.
Operations that this extension is valid for include: IAttribute.getValues(IExtension[])


Field Summary
static String id
           
 
Constructor Summary
DereferenceAttrValuesExtension(URI[] attrIDs, URI[] types, boolean failIfUnsupported)
           
 
Method Summary
 boolean failIfUnsupported()
           
 URI getID()
           
 boolean shouldDereference(URI attrID, URI valType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public static final String id
See Also:
Constant Field Values
Constructor Detail

DereferenceAttrValuesExtension

public DereferenceAttrValuesExtension(URI[] attrIDs,
                                      URI[] types,
                                      boolean failIfUnsupported)
Parameters:
attrIDs - may be null. When null, any attribute that is dereferenceable should be dereferenced. When not null, specifies only those attributes which should be dereferenced
types - may be null. When null, any value type that is dereferenceable should be dereferenced. When not null, specifies only those value types which should be dereferenced
failIfUnsupported - true if the caller wishes the operation being passed this extension to fail when it doesn't support the extension.
Method Detail

getID

public URI getID()
Specified by:
getID in interface org.eclipse.higgins.idas.api.IExtension

failIfUnsupported

public boolean failIfUnsupported()
Specified by:
failIfUnsupported in interface org.eclipse.higgins.idas.api.IExtension

shouldDereference

public boolean shouldDereference(URI attrID,
                                 URI valType)
Returns:
true if the passed attribute ID should be dereferenced.