Package me.ahoo.cosid.accessor.parser
Class NamedDefinitionParser
java.lang.Object
me.ahoo.cosid.accessor.parser.NamedDefinitionParser
- All Implemented Interfaces:
FieldDefinitionParser
Parses fields by name to create
IdDefinition.
Creates an ID definition for fields matching the specified name.
-
Constructor Summary
ConstructorsConstructorDescriptionNamedDefinitionParser(String idFieldName) Creates a parser for the specified field name. -
Method Summary
Modifier and TypeMethodDescriptionParses a field to create its ID definition.
-
Constructor Details
-
NamedDefinitionParser
Creates a parser for the specified field name.- Parameters:
idFieldName- the field name to match
-
-
Method Details
-
parse
Description copied from interface:FieldDefinitionParserParses a field to create its ID definition.- Specified by:
parsein interfaceFieldDefinitionParser- Parameters:
lookupClassList- list of classes in the hierarchyfield- the field to parse- Returns:
- the ID definition or null
-