Class DefaultStructureSchemaFinder
java.lang.Object
ai.stapi.schema.structureSchemaProvider.DefaultStructureSchemaFinder
- All Implemented Interfaces:
StructureSchemaFinder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultStructureSchemaFinder(StructureSchemaProvider structureSchemaProvider) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsType(String rootType, String typeToBeFound) getAllFieldDefinitionsFor(String serializationType) getFieldDefinitionFor(String serializationType, String fieldName) @NotNull HashMap<String,FieldDefinition> getFieldDefinitionHashMap(Map<?, ?> attributes, String structureId) getFieldDefinitionOrFallback(String serializationType, String fieldName) getFieldDefinitionsFor(String serializationType, List<String> fieldNames) getSchemaStructure(String serializationType) getStructureType(String serializationType) booleanbooleanisEqualOrInherits(String serializationType, String inheritedSerializationType) booleanbooleanisResource(String serializationType) booleanstructureExists(String serializationType)
-
Field Details
-
UNKNOWN_FIELD_TYPE
- See Also:
-
-
Constructor Details
-
DefaultStructureSchemaFinder
-
-
Method Details
-
isList
- Specified by:
isListin interfaceStructureSchemaFinder- Throws:
FieldsNotFoundException
-
containsType
- Specified by:
containsTypein interfaceStructureSchemaFinder
-
getStructureType
- Specified by:
getStructureTypein interfaceStructureSchemaFinder
-
getFieldDefinitionsFor
public Map<String,FieldDefinition> getFieldDefinitionsFor(String serializationType, List<String> fieldNames) throws FieldsNotFoundException - Specified by:
getFieldDefinitionsForin interfaceStructureSchemaFinder- Throws:
FieldsNotFoundException
-
getFieldDefinitionFor
public FieldDefinition getFieldDefinitionFor(String serializationType, String fieldName) throws FieldsNotFoundException - Specified by:
getFieldDefinitionForin interfaceStructureSchemaFinder- Throws:
FieldsNotFoundException
-
getAllFieldDefinitionsFor
public Map<String,FieldDefinition> getAllFieldDefinitionsFor(String serializationType) throws FieldsNotFoundException - Specified by:
getAllFieldDefinitionsForin interfaceStructureSchemaFinder- Throws:
FieldsNotFoundException
-
getFieldDefinitionHashMap
@NotNull public @NotNull HashMap<String,FieldDefinition> getFieldDefinitionHashMap(Map<?, ?> attributes, String structureId) - Specified by:
getFieldDefinitionHashMapin interfaceStructureSchemaFinder
-
isResource
- Specified by:
isResourcein interfaceStructureSchemaFinder
-
structureExists
- Specified by:
structureExistsin interfaceStructureSchemaFinder
-
getSchemaStructure
- Specified by:
getSchemaStructurein interfaceStructureSchemaFinder
-
getFieldDefinitionOrFallback
- Specified by:
getFieldDefinitionOrFallbackin interfaceStructureSchemaFinder
-
getAllResources
- Specified by:
getAllResourcesin interfaceStructureSchemaFinder
-
inherits
- Specified by:
inheritsin interfaceStructureSchemaFinder
-
isEqualOrInherits
- Specified by:
isEqualOrInheritsin interfaceStructureSchemaFinder
-