| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.model.building.StringModelSource
public class StringModelSource
Wraps an ordinary CharSequence as a model source.
| Constructor Summary | |
|---|---|
| StringModelSource(CharSequence pom)Creates a new model source backed by the specified string. | |
| StringModelSource(CharSequence pom,
                  String location)Creates a new model source backed by the specified string. | |
| Method Summary | |
|---|---|
|  InputStream | getInputStream()Gets a byte stream to the POM contents. | 
|  String | getLocation()Provides a user-friendly hint about the location of the POM. | 
|  String | getModel()Gets the character sequence of this model source. | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public StringModelSource(CharSequence pom)
pom - The POM's string representation, may be empty or null.
public StringModelSource(CharSequence pom,
                         String location)
pom - The POM's string representation, may be empty or null.location - The location to report for this use, may be null.| Method Detail | 
|---|
public InputStream getInputStream()
                           throws IOException
ModelSource
getInputStream in interface ModelSourcenull.
IOExceptionpublic String getLocation()
ModelSource
getLocation in interface ModelSourcenull.public String getModel()
null.public String toString()
toString in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||