public class RepositoryResource extends Object implements Resource
RepositoryLocation
Constructor and Description |
---|
RepositoryResource(RepositoryLocation aLocation) |
Modifier and Type | Method and Description |
---|---|
InputStream |
asStream(ActualEnvironment environment) |
boolean |
equals(Object obj) |
RepositoryLocation |
getLocation() |
int |
hashCode() |
<R> R |
processWith(ResourceProcessor<R> processor)
Processes the Resource with a
ResourceProcessor . |
String |
stringify(Stringifier stringifier)
Returns the String representation of the resource.
|
public RepositoryResource(RepositoryLocation aLocation)
public String stringify(Stringifier stringifier) throws ReferenceEncodingException
Resource
stringify
in interface Resource
ReferenceEncodingException
public RepositoryLocation getLocation()
public <R> R processWith(ResourceProcessor<R> processor) throws ResourceProcessingError
Resource
ResourceProcessor
. This method has
the role of the accept method in the Visitor pattern, in this case the
Visitor being the ResourceProcessor
and the Element - the
Resource.processWith
in interface Resource
ResourceProcessingError
public InputStream asStream(ActualEnvironment environment) throws ActualEnvironmentException
asStream
in interface Resource
ActualEnvironmentException
Copyright © 2005–2017 Alfresco Software. All rights reserved.