Package org.gedcomx.common
Class ResourceReference
java.lang.Object
org.gedcomx.common.ResourceReference
A generic reference to a resource.
- Author:
- Ryan Heaton
-
Constructor Summary
ConstructorsConstructorDescriptionResourceReference(URI resource) ResourceReference(URI resource) ResourceReference(URI resource, String resourceId) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe URI to the resource.The resource id of the resource being referenced.inthashCode()Build up this resource reference with a resource.resourceId(String resourceId) Build up this resource reference with a resource id.voidsetResource(URI resource) The URI to the resource.voidsetResourceId(String resourceId) The resource id of the resource being referenced.toString()Provide a simple toString() method.
-
Constructor Details
-
ResourceReference
public ResourceReference() -
ResourceReference
-
ResourceReference
-
ResourceReference
-
ResourceReference
-
-
Method Details
-
getResourceId
The resource id of the resource being referenced. Used as an extension attribute when resolving the resource is inconvenient.- Returns:
- The resource id of the resource being referenced.
-
setResourceId
The resource id of the resource being referenced. Used as an extension attribute when resolving the resource is inconvenient.- Parameters:
resourceId- The resource id of the resource being referenced.
-
resourceId
Build up this resource reference with a resource id.- Parameters:
resourceId- The resource id.- Returns:
- this.
-
getResource
The URI to the resource. For more information, see Architecture of the World Wide Web, Volume One, Section 2- Returns:
- The URI to the resource.
- See Also:
-
setResource
The URI to the resource. For more information, see Architecture of the World Wide Web, Volume One, Section 2- Parameters:
resource- The URI to the resource.- See Also:
-
resource
Build up this resource reference with a resource.- Parameters:
resource- The resource.- Returns:
- this.
-
toString
Provide a simple toString() method. -
equals
-
hashCode
public int hashCode()
-