Package org.alfresco.repo.virtual.ref
Class ClasspathResource
- java.lang.Object
-
- org.alfresco.repo.virtual.ref.ClasspathResource
-
-
Constructor Summary
Constructors Constructor Description ClasspathResource(java.lang.String classpath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamasStream(ActualEnvironment environment)booleanequals(java.lang.Object obj)java.lang.StringgetClasspath()inthashCode()<R> RprocessWith(ResourceProcessor<R> processor)Processes the Resource with aResourceProcessor.java.lang.Stringstringify(Stringifier stringifier)Returns the String representation of the resource.
-
-
-
Method Detail
-
getClasspath
public java.lang.String getClasspath()
-
stringify
public java.lang.String stringify(Stringifier stringifier) throws ReferenceEncodingException
Description copied from interface:ResourceReturns the String representation of the resource.- Specified by:
stringifyin interfaceResource- Returns:
- Throws:
ReferenceEncodingException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
processWith
public <R> R processWith(ResourceProcessor<R> processor) throws ResourceProcessingError
Description copied from interface:ResourceProcesses the Resource with aResourceProcessor. This method has the role of the accept method in the Visitor pattern, in this case the Visitor being theResourceProcessorand the Element - the Resource.- Specified by:
processWithin interfaceResource- Returns:
- Throws:
ResourceProcessingError
-
asStream
public java.io.InputStream asStream(ActualEnvironment environment) throws ActualEnvironmentException
- Specified by:
asStreamin interfaceResource- Throws:
ActualEnvironmentException
-
-