org.eclipse.higgins.idas.common
Class DereferenceAttrValuesExtension
java.lang.Object
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[])
id
public static final String id
- See Also:
- Constant Field Values
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 dereferencedtypes
- 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 dereferencedfailIfUnsupported
- true if the caller wishes the operation being passed this
extension to fail when it doesn't support the extension.
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.