Object |
IConverter.convert(Object raw,
ConverterContext ctx) |
Converts a raw object into a LinkML object.
|
Object |
ObjectConverter.convert(Object raw,
ConverterContext ctx) |
|
Object |
ObjectConverter.convert(Map<String,Object> raw,
String id,
ConverterContext ctx) |
Converts a raw map into a new instance of a LinkML object.
|
Object |
ObjectConverter.convert(Map<String,Object> raw,
ConverterContext ctx) |
Converts a raw map into a new instance of a LinkML object.
|
Object |
ScalarConverterBase.convert(Object raw,
ConverterContext ctx) |
|
void |
IConverter.convertForSlot(Object raw,
Object dest,
Slot slot,
ConverterContext ctx) |
Converts a raw object into a LinkML object and assigns the result to a slot
of another object.
|
void |
ObjectConverter.convertForSlot(Object raw,
Object dest,
Slot slot,
ConverterContext ctx) |
Converts the value of a single slot and assigns it to the target object.
|
void |
ScalarConverterBase.convertForSlot(Object raw,
Object dest,
Slot slot,
ConverterContext ctx) |
|
protected Object |
BooleanConverter.convertImpl(Object raw,
ConverterContext ctx) |
|
protected Object |
CurieConverter.convertImpl(Object raw,
ConverterContext ctx) |
|
protected Object |
DateConverter.convertImpl(Object raw,
ConverterContext ctx) |
|
protected Object |
DatetimeConverter.convertImpl(Object raw,
ConverterContext ctx) |
|
protected Object |
DoubleConverter.convertImpl(Object raw,
ConverterContext ctx) |
|
protected Object |
EnumConverter.convertImpl(Object raw,
ConverterContext ctx) |
|
protected Object |
FloatConverter.convertImpl(Object raw,
ConverterContext ctx) |
|
protected Object |
IntegerConverter.convertImpl(Object raw,
ConverterContext ctx) |
|
protected abstract Object |
ScalarConverterBase.convertImpl(Object raw,
ConverterContext ctx) |
Performs the actual type conversion.
|
protected Object |
StringConverter.convertImpl(Object raw,
ConverterContext ctx) |
|
protected Object |
TimeConverter.convertImpl(Object raw,
ConverterContext ctx) |
|
protected Object |
URIConverter.convertImpl(Object raw,
ConverterContext ctx) |
|
void |
ObjectConverter.convertTo(Object raw,
Object dest,
ConverterContext ctx) |
Converts a raw object into an instance of a LinkML object, where the object
already exists.
|
void |
ObjectConverter.convertTo(Map<String,Object> rawMap,
Object dest,
ConverterContext ctx) |
Converts a raw map into an instance of a LinkML object, where the object
already exists.
|
<T> void |
YAMLLoader.dumpObject(File file,
T object) |
Dumps a LinkML object into a YAML file.
|
<T> void |
YAMLLoader.dumpObjects(File file,
List<T> objects) |
Dumps a list of LinkML objects into a YAML file.
|
Map<String,String> |
PrefixDeclarationExtractor.extractPrefixes(Map<String,Object> rawMap,
Object dest,
ConverterContext ctx) |
Extracts prefix declarations from the raw representation of a LinkML object.
|
void |
ConverterContext.finalizeAssignments() |
Performs all delayed assignments.
|
void |
ConverterContext.finalizeAssignments(boolean failOnMissing) |
Performs all delayed assignments, optionally failing if an assignment refers
to a missing object.
|
IConverter |
ConverterContext.getConverter(Class<?> type) |
Gets the converter for objects of the given type.
|
IConverter |
ConverterContext.getConverter(Slot slot) |
Gets the converter for the type of object expected by the given slot.
|
protected String |
ObjectConverter.getGlobalIdentifier(Object raw,
ConverterContext ctx) |
Converts the given raw object into an identifier for the target object type.
|
protected List<String> |
ObjectConverter.getGlobalIdentifierList(Object raw,
ConverterContext ctx) |
Converts the given list of raw objects into identifiers for the target object
type.
|
<T> T |
ConverterContext.getObject(Class<T> type,
String name,
boolean create) |
Dereferences a global object, optionally creating it if does not already
exist.
|
Object |
ConverterContext.getObject(Slot slot,
String name,
Object target) |
Dereferences a global object and assigns it to a slot on another object.
|
<T> T |
ObjectCache.getObject(Class<T> type,
String name) |
Looks up for an object with the specified name.
|
<T> T |
ObjectCache.getObject(Class<T> type,
String name,
boolean create) |
Looks up for an object with the specified name.
|
void |
ConverterContext.getObjects(Class<?> type,
List<String> names,
List<Object> target) |
Dereferences several global objects and assigns them to a list.
|
static Slot |
Slot.getSlot(Class<?> klass,
String name) |
Gets the Slot object corresponding to a given field in a given class.
|
Object |
Slot.getValue(Object source) |
Gets the value of the slot for the given object.
|
<T> T |
YAMLLoader.loadObject(File file,
Class<T> type) |
Loads an instance of the specified type from a YAML file.
|
<T> List<T> |
YAMLLoader.loadObjects(File file,
Class<T> type) |
Loads a list of instances of the specified type from a YAML file.
|
Object |
ClassInfo.newInstance() |
Creates a new instance of the class.
|
protected List<Object> |
ObjectConverter.normaliseList(Object raw,
InliningMode expected) |
Normalises a raw multi-valued slot.
|
Object |
CurieConverter.serialise(Object object,
ConverterContext ctx) |
|
Object |
DateConverter.serialise(Object object,
ConverterContext ctx) |
|
Object |
DatetimeConverter.serialise(Object object,
ConverterContext ctx) |
|
Object |
EnumConverter.serialise(Object object,
ConverterContext ctx) |
|
Object |
IConverter.serialise(Object object,
ConverterContext ctx) |
Converts a LinkML object into a raw object.
|
Map<String,Object> |
ObjectConverter.serialise(Object object,
boolean withIdentifier,
ConverterContext ctx) |
Converts a LinkML object into a raw object.
|
Object |
ObjectConverter.serialise(Object object,
ConverterContext ctx) |
|
Object |
ScalarConverterBase.serialise(Object object,
ConverterContext ctx) |
|
Object |
TimeConverter.serialise(Object object,
ConverterContext ctx) |
|
Object |
IConverter.serialiseForSlot(Object object,
Slot slot,
ConverterContext ctx) |
Converts a LinkML object into a raw object, when the object is the value of a
specific LinkML slot.
|
Object |
ObjectConverter.serialiseForSlot(Object object,
Slot slot,
ConverterContext ctx) |
|
Object |
ScalarConverterBase.serialiseForSlot(Object object,
Slot slot,
ConverterContext ctx) |
|
void |
Slot.setValue(Object target,
Object value) |
Assigns a value to the slot for the given object.
|
protected Object |
ObjectConverter.toIdentifier(Object object,
ConverterContext ctx) |
Gets the unique identifier for the given object.
|
protected List<Object> |
ObjectConverter.toList(Object value) |
Checks that a raw object is a list, and casts it as such.
|
protected List<Object> |
ScalarConverterBase.toList(Object raw) |
Checks that a raw object is a list, and casts it as such.
|
protected Map<String,Object> |
ObjectConverter.toMap(Object value) |
Checks that a raw object is a String-keyed map, and casts it as such.
|