Package org.incenp.linkml.schema
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 Summary
Constructors Constructor Description EmbeddedSchemaSource(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)StringgetBase()Gets the base location of this source.InputStreamgetStream()Opens the location into a readable stream.inthashCode()
-
-
-
Constructor Detail
-
EmbeddedSchemaSource
public EmbeddedSchemaSource(String name)
-
-
Method Detail
-
getBase
public String getBase()
Description copied from interface:ISchemaSourceGets the base location of this source.The base location is the location from which relative import references are resolved.
- Specified by:
getBasein interfaceISchemaSource- Returns:
- The base location. May be
null.
-
getStream
public InputStream getStream() throws IOException
Description copied from interface:ISchemaSourceOpens the location into a readable stream.- Specified by:
getStreamin interfaceISchemaSource- Throws:
IOException- If the location cannot be opened for any reason.
-
-