Class EmbeddedSchemaSource

java.lang.Object
org.incenp.linkml.schema.EmbeddedSchemaSource
All Implemented Interfaces:
ISchemaSource

public class EmbeddedSchemaSource extends Object implements ISchemaSource
Represents a schema location pointing to an embedded Java resource.
  • Constructor Details

    • EmbeddedSchemaSource

      public EmbeddedSchemaSource(String name)
  • Method Details

    • getBase

      public String getBase()
      Description copied from interface: ISchemaSource
      Gets the base location of this source.

      The base location is the location from which relative import references are resolved.

      Specified by:
      getBase in interface ISchemaSource
      Returns:
      The base location. May be null.
    • getStream

      public InputStream getStream() throws IOException
      Description copied from interface: ISchemaSource
      Opens the location into a readable stream.
      Specified by:
      getStream in interface ISchemaSource
      Throws:
      IOException - If the location cannot be opened for any reason.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object