Class FieldData<I,O>
- java.lang.Object
- 
- org.spongepowered.configurate.objectmapping.FieldData<I,O>
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceFieldData.Deserializer<I>A deserialization handler to appropriately place object data into fields.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanisValid(Object instance)Test if an object would be valid for this field.abstract Stringname()The name of the field.abstract AnnotatedTyperesolvedType()The calculated type of this field within the object type.@Nullable ConfigurationNoderesolveNode(ConfigurationNode source)Use this field's node resolvers to determine a target node.voidvalidate(@Nullable Object instance)Try to ensure the provided value is acceptable.
 
- 
- 
- 
Method Detail- 
resolvedTypepublic abstract AnnotatedType resolvedType() The calculated type of this field within the object type.This value has had any possible type parameters resolved using information available in the context. - Returns:
- the resolved type
- Since:
- 4.0.0
 
 - 
isValidpublic boolean isValid(Object instance) Test if an object would be valid for this field.- Parameters:
- instance- instance to validate
- Returns:
- true if valid
- Since:
- 4.0.0
 
 - 
validatepublic void validate(@Nullable Object instance) throws SerializationException Try to ensure the provided value is acceptable.- Parameters:
- instance- field value instance to validate
- Throws:
- SerializationException- if validation fails
- Since:
- 4.0.0
 
 - 
resolveNodepublic @Nullable ConfigurationNode resolveNode(ConfigurationNode source) Use this field's node resolvers to determine a target node.- Parameters:
- source- parent node
- Returns:
- resolved node
- Since:
- 4.0.0
 
 
- 
 
-