public interface Resource
Reference
element that identifies the main or a parameter content
location. Reference
protocol.Modifier and Type | Method and Description |
---|---|
InputStream |
asStream(ActualEnvironment environment) |
<R> R |
processWith(ResourceProcessor<R> processor)
Processes the Resource with a
ResourceProcessor . |
String |
stringify(Stringifier stringifier)
Returns the String representation of the resource.
|
String stringify(Stringifier stringifier) throws ReferenceEncodingException
stringifier
- ReferenceEncodingException
<R> R processWith(ResourceProcessor<R> processor) throws ResourceProcessingError
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.processor
- ResourceProcessingError
InputStream asStream(ActualEnvironment environment) throws ActualEnvironmentException
ActualEnvironmentException
Copyright © 2005–2017 Alfresco Software. All rights reserved.