new EvidenceReference( [json])
A generic reference to a resource.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
json |
Object |
<optional> |
- See:
Extends
Methods
-
getAttribution()
-
Get the attribution.
Returns:
- Type
- Attribution
-
getResource()
-
Get the resource URI
- Inherited From:
Returns:
Resource- Type
- String
-
getResourceId()
-
Get the resourceId
- Inherited From:
Returns:
resourceId- Type
- Boolean
-
init(json)
-
Initialize from JSON
Parameters:
Name Type Description json
Object - Overrides:
Returns:
this- Type
- EvidenceReference
-
<static> isInstance(obj)
-
Check whether the given object is an instance of this class.
Parameters:
Name Type Description obj
Object Returns:
- Type
- Boolean
-
matches(resource)
-
Check whether this reference matches the given resource.
Parameters:
Name Type Description resource
Base Resource or ID - Inherited From:
Returns:
- Type
- Boolean
-
setAttribution(attribution)
-
Set the attribution
Parameters:
Name Type Description attribution
Object | Attribution Returns:
This instance.- Type
- EvidenceReference
-
setResource(uri)
-
Set the resource URI
Parameters:
Name Type Description uri
String - Inherited From:
Returns:
this object- Type
- ResourceReference
-
setResourceId(resourceId)
-
Set the resourceId
Parameters:
Name Type Description resourceId
Boolean - Inherited From:
Returns:
this- Type
- ResourceReference
-
toJSON()
-
Export the object as JSON
- Overrides:
Returns:
JSON object- Type
- Object