Class RestrictedStructureSchemaFinder
java.lang.Object
ai.stapi.schema.structureSchemaProvider.RestrictedStructureSchemaFinder
- All Implemented Interfaces:
StructureSchemaFinder
-
Constructor Summary
Constructors -
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 serializationType) 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)
-
Constructor Details
-
RestrictedStructureSchemaFinder
public RestrictedStructureSchemaFinder()
-
-
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 serializationType) - 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
-