org.tinyjee.maven.dim.sources
Class MergeSource

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.tinyjee.maven.dim.spi.Source
Source.Content
 
Constructor Summary
MergeSource(Source mainSource, Source paramsSource)
          Constructs a merge source.
 
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
 

Constructor Detail

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.
Method Detail

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.