Module dev.metaschema.core
Package dev.metaschema.core.model
Class AbstractFieldInstance<PARENT extends IContainerModel,DEFINITION extends IFieldDefinition,INSTANCE extends IFieldInstance,PARENT_DEFINITION extends IAssemblyDefinition>
java.lang.Object
dev.metaschema.core.model.AbstractInstance<PARENT>
dev.metaschema.core.model.AbstractNamedInstance<PARENT>
dev.metaschema.core.model.AbstractNamedModelInstance<PARENT,PARENT_DEFINITION>
dev.metaschema.core.model.AbstractFieldInstance<PARENT,DEFINITION,INSTANCE,PARENT_DEFINITION>
- Type Parameters:
PARENT- the Java type of the parent model (i.e., assembly, choice, choiceGroup).DEFINITION- the Java type of the definition for this member fieldINSTANCE- the Java type of the instance for this member fieldPARENT_DEFINITION- the Java type of the containing assembly definition
- All Implemented Interfaces:
IAttributable,IDefaultable,IDescribable,IFeatureDefinitionReferenceInstance<DEFINITION,,INSTANCE> IField,IFieldInstance,IGroupable,IInstance,IJsonNamed,IModelElement,IModelElementVisitable,IModelInstance,INamed,INamedInstance,INamedModelElement,INamedModelInstance,IValuedInstance
public abstract class AbstractFieldInstance<PARENT extends IContainerModel,DEFINITION extends IFieldDefinition,INSTANCE extends IFieldInstance,PARENT_DEFINITION extends IAssemblyDefinition>
extends AbstractNamedModelInstance<PARENT,PARENT_DEFINITION>
implements IFieldInstance, IFeatureDefinitionReferenceInstance<DEFINITION,INSTANCE>
A base class for a field that is a member of a containing model.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.model.IAttributable
IAttributable.Key -
Field Summary
Fields inherited from interface dev.metaschema.core.model.IAttributable
DEFAULT_PROPERY_NAMESPACEFields inherited from interface dev.metaschema.core.model.IFieldInstance
DEFAULT_FIELD_IN_XML_WRAPPEDFields inherited from interface dev.metaschema.core.model.IGroupable
DEFAULT_GROUP_AS_MAX_OCCURS, DEFAULT_GROUP_AS_MIN_OCCURS, DEFAULT_JSON_GROUP_AS_BEHAVIOR, DEFAULT_XML_GROUP_AS_BEHAVIOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFieldInstance(PARENT parent) Construct a new field instance. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the field definition referenced by this instance.Generates a "coordinate" string for the assembly instance.Methods inherited from class dev.metaschema.core.model.AbstractNamedModelInstance
getContainingDefinition, getContainingModuleMethods inherited from class dev.metaschema.core.model.AbstractNamedInstance
getQName, getReferencedDefinitionQNameMethods inherited from class dev.metaschema.core.model.AbstractInstance
getParentContainerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.metaschema.core.model.IAttributable
getProperties, getPropertyValues, hasProperty, hasPropertyValueMethods inherited from interface dev.metaschema.core.model.IDefaultable
getDefaultValue, getResolvedDefaultValueMethods inherited from interface dev.metaschema.core.model.IDescribable
getDescription, getFormalNameMethods inherited from interface dev.metaschema.core.model.IFeatureDefinitionReferenceInstance
getEffectiveDefaultValue, getEffectiveDescription, getEffectiveFormalName, getEffectiveIndex, getEffectiveName, getInlineInstance, isInlineDefinitionMethods inherited from interface dev.metaschema.core.model.IField
getModelTypeMethods inherited from interface dev.metaschema.core.model.IFieldInstance
isInXmlWrappedMethods inherited from interface dev.metaschema.core.model.IGroupable
getEffectiveXmlGroupAsQName, getGroupAsName, getItemValues, getJsonGroupAsBehavior, getMaxOccurs, getMinOccurs, getXmlGroupAsBehaviorMethods inherited from interface dev.metaschema.core.model.IModelElement
getContainingModule, getRemarksMethods inherited from interface dev.metaschema.core.model.IModelElementVisitable
acceptMethods inherited from interface dev.metaschema.core.model.IModelInstance
getContainingDefinition, getParentContainer, isEffectiveValueWrappedInXmlMethods inherited from interface dev.metaschema.core.model.INamed
getIndex, getName, getQName, getUseIndex, getUseNameMethods inherited from interface dev.metaschema.core.model.INamedInstance
getReferencedDefinitionQNameMethods inherited from interface dev.metaschema.core.model.INamedModelElement
getJsonNameMethods inherited from interface dev.metaschema.core.model.INamedModelInstance
getEffectiveJsonKey, getJsonKey, hasJsonKey
-
Constructor Details
-
AbstractFieldInstance
Construct a new field instance.- Parameters:
parent- the parent model containing this instance
-
-
Method Details
-
getDefinition
Description copied from interface:IFieldInstanceRetrieves the field definition referenced by this instance.- Specified by:
getDefinitionin interfaceIFeatureDefinitionReferenceInstance<PARENT extends IContainerModel,DEFINITION extends IFieldDefinition> - Specified by:
getDefinitionin interfaceIFieldInstance- Specified by:
getDefinitionin interfaceINamedInstance- Specified by:
getDefinitionin interfaceINamedModelInstance- Specified by:
getDefinitionin interfaceIValuedInstance- Returns:
- the field definition
-
toCoordinates
Generates a "coordinate" string for the assembly instance.- Specified by:
toCoordinatesin interfaceIInstance- Specified by:
toCoordinatesin interfaceIModelElement- Returns:
- the coordinate
-