Interface Schema
-
- All Known Implementing Classes:
JacksonJSONSchema
public interface Schema
Interface to represent schema in data mapper engine.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getElementTypeByName(String elementStack)
String
getElementTypeByName(List<SchemaElement> elementStack)
Method to get the element type specified in the schema by giving the element hierarchyString
getName()
Method for get defined name of the schemaMap<String,String>
getNamespaceMap()
String
getPrefixForNamespace(String url)
Map<String,String>
getPrefixMap()
Map
getSchemaMap()
boolean
isChildElement(String elementName, String childElementName)
Method for check whether schema has a child element inside given elementboolean
isChildElement(List<SchemaElement> elementStack, String childElementName)
boolean
isCurrentArrayIsPrimitive()
-
-
-
Method Detail
-
getName
String getName() throws SchemaException
Method for get defined name of the schema- Returns:
- Name of the schema as a String
- Throws:
SchemaException
-
getElementTypeByName
String getElementTypeByName(List<SchemaElement> elementStack) throws InvalidPayloadException, SchemaException
Method to get the element type specified in the schema by giving the element hierarchy- Parameters:
elementStack
-- Returns:
- type of the element
- Throws:
InvalidPayloadException
SchemaException
-
getElementTypeByName
String getElementTypeByName(String elementStack) throws InvalidPayloadException, SchemaException
-
isChildElement
boolean isChildElement(String elementName, String childElementName)
Method for check whether schema has a child element inside given element- Returns:
-
isChildElement
boolean isChildElement(List<SchemaElement> elementStack, String childElementName) throws InvalidPayloadException, SchemaException
-
isCurrentArrayIsPrimitive
boolean isCurrentArrayIsPrimitive()
-
getSchemaMap
Map getSchemaMap()
-
-