Class StringModelSource

  • All Implemented Interfaces:
    org.apache.maven.building.Source, ModelSource

    @Deprecated
    public class StringModelSource
    extends org.apache.maven.building.StringSource
    implements ModelSource
    Deprecated.
    instead use StringSource
    Wraps an ordinary CharSequence as a model source.
    Author:
    Benjamin Bentmann
    • Constructor Summary

      Constructors 
      Constructor Description
      StringModelSource​(java.lang.CharSequence pom)
      Deprecated.
      Creates a new model source backed by the specified string.
      StringModelSource​(java.lang.CharSequence pom, java.lang.String location)
      Deprecated.
      Creates a new model source backed by the specified string.
    • Method Summary

      • Methods inherited from class org.apache.maven.building.StringSource

        getContent, getInputStream, getLocation, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apache.maven.building.Source

        getInputStream, getLocation
    • Constructor Detail

      • StringModelSource

        public StringModelSource​(java.lang.CharSequence pom)
        Deprecated.
        Creates a new model source backed by the specified string.
        Parameters:
        pom - The POM's string representation, may be empty or null.
      • StringModelSource

        public StringModelSource​(java.lang.CharSequence pom,
                                 java.lang.String location)
        Deprecated.
        Creates a new model source backed by the specified string.
        Parameters:
        pom - The POM's string representation, may be empty or null.
        location - The location to report for this use, may be null.