Class FileSchemaSource
java.lang.Object
org.incenp.linkml.schema.FileSchemaSource
- All Implemented Interfaces:
ISchemaSource
Represents a schema location pointing to a local file.
-
Constructor Summary
ConstructorsConstructorDescriptionFileSchemaSource(File file) Creates a new instance from aFileobject.FileSchemaSource(String filename) Creates a new instance from a filename. -
Method Summary
-
Constructor Details
-
FileSchemaSource
-
FileSchemaSource
Creates a new instance from a filename.- Parameters:
filename- The name of the file expected to contain the schema.
-
-
Method Details
-
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
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.
-
hashCode
-
equals
-