org.tinyjee.maven.dim.sources
Class MergeSource
java.lang.Object
org.tinyjee.maven.dim.sources.MergeSource
- All Implemented Interfaces:
- Source
public class MergeSource
- extends Object
- implements Source
Merges 2 sources to 1.
- Author:
- Juergen_Kellerer, 2010-09-06
Method Summary |
Source.Content |
getContent()
Retrieves the source content. |
URL |
getUrl()
Returns the underlying source URL or 'null' if this Source doesn't refer to an URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MergeSource
public MergeSource(Source mainSource,
Source paramsSource)
- Constructs a merge source.
- Parameters:
mainSource
- the source containing params and content.paramsSource
- the source containing only the params.
getUrl
public URL getUrl()
- Returns the underlying source URL or 'null' if this Source doesn't refer to an URL.
- Specified by:
getUrl
in interface Source
- Returns:
- the underlying source URL or 'null' if this Source doesn't refer to an URL.
getContent
public Source.Content getContent()
- Retrieves the source content.
- Specified by:
getContent
in interface Source
- Returns:
- the source content.