Class AbstractFieldProperty
- java.lang.Object
-
- gov.nist.secauto.metaschema.databind.model.AbstractFieldProperty
-
- All Implemented Interfaces:
IField
,IFieldInstance
,IInstance
,IModelElement
,IModelInstance
,INamedInstance
,INamedModelElement
,INamedModelInstance
,IBoundFieldInstance
,IBoundNamedInstance
,IBoundNamedModelInstance
public abstract class AbstractFieldProperty extends Object implements IBoundFieldInstance
-
-
Constructor Summary
Constructors Constructor Description AbstractFieldProperty(Field field, IAssemblyClassBinding parentClassBinding)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nist.secauto.metaschema.databind.model.IBoundFieldInstance
getDefinition
-
Methods inherited from interface gov.nist.secauto.metaschema.databind.model.IBoundNamedInstance
copyBoundObject, defaultValue, getField, getJavaFieldName, getName, getProperties, getType, getValue, setValue
-
Methods inherited from interface gov.nist.secauto.metaschema.databind.model.IBoundNamedModelInstance
copyItem, getDataTypeHandler, getItemType, getItemValues, getParentClassBinding, getPropertyInfo
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IField
getModelType
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IFieldInstance
getGroupAsXmlNamespace, getXmlNamespace, getXmlQName
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IInstance
getContainingModule
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.IModelInstance
getContainingDefinition, getGroupAsName, getJsonGroupAsBehavior, getParentContainer, getXmlGroupAsBehavior, getXmlGroupAsQName
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedInstance
getEffectiveDescription, getEffectiveFormalName, getEffectiveName
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedModelElement
getPropertyValues, hasProperty, hasPropertyValue
-
Methods inherited from interface gov.nist.secauto.metaschema.core.model.INamedModelInstance
getJsonName
-
-
-
-
Constructor Detail
-
AbstractFieldProperty
public AbstractFieldProperty(@NonNull Field field, @NonNull IAssemblyClassBinding parentClassBinding)
-
-
Method Detail
-
getFieldAnnotation
@NonNull protected BoundField getFieldAnnotation()
-
getFormalName
public String getFormalName()
- Specified by:
getFormalName
in interfaceINamedModelElement
-
getDescription
public MarkupLine getDescription()
- Specified by:
getDescription
in interfaceINamedModelElement
-
getUseName
public String getUseName()
- Specified by:
getUseName
in interfaceINamedModelElement
-
isInXmlWrapped
public boolean isInXmlWrapped()
- Specified by:
isInXmlWrapped
in interfaceIFieldInstance
-
getMinOccurs
public int getMinOccurs()
- Specified by:
getMinOccurs
in interfaceIModelInstance
-
getMaxOccurs
public int getMaxOccurs()
- Specified by:
getMaxOccurs
in interfaceIModelInstance
-
getRemarks
public MarkupMultiline getRemarks()
- Specified by:
getRemarks
in interfaceIModelElement
-
toCoordinates
public String toCoordinates()
- Specified by:
toCoordinates
in interfaceIInstance
- Specified by:
toCoordinates
in interfaceIModelElement
- Specified by:
toCoordinates
in interfaceINamedInstance
-
newDataTypeHandler
protected abstract IDataTypeHandler newDataTypeHandler()
-
getDataTypeHandler
public IDataTypeHandler getDataTypeHandler()
- Specified by:
getDataTypeHandler
in interfaceIBoundNamedModelInstance
-
getField
public Field getField()
Description copied from interface:IBoundNamedInstance
Gets the bound Java field associated with this property.- Specified by:
getField
in interfaceIBoundNamedInstance
- Returns:
- the Java field
-
getGroupAsName
public String getGroupAsName()
- Specified by:
getGroupAsName
in interfaceIModelInstance
-
getGroupAsXmlNamespace
public String getGroupAsXmlNamespace()
- Specified by:
getGroupAsXmlNamespace
in interfaceIModelInstance
-
getJsonGroupAsBehavior
public JsonGroupAsBehavior getJsonGroupAsBehavior()
- Specified by:
getJsonGroupAsBehavior
in interfaceIModelInstance
-
getXmlGroupAsBehavior
public XmlGroupAsBehavior getXmlGroupAsBehavior()
- Specified by:
getXmlGroupAsBehavior
in interfaceIModelInstance
-
getPropertyInfo
@NonNull public IModelPropertyInfo getPropertyInfo()
Gets information about the bound property.- Specified by:
getPropertyInfo
in interfaceIBoundNamedModelInstance
- Returns:
- the property information for the bound property
-
getItemValues
public Collection<? extends Object> getItemValues(Object value)
Description copied from interface:IBoundNamedModelInstance
Get the item values associated with the provided value.- Specified by:
getItemValues
in interfaceIBoundNamedModelInstance
- Specified by:
getItemValues
in interfaceINamedModelInstance
- Parameters:
value
- the value which may be a singleton or a collection- Returns:
- the ordered collection of values
-
copyBoundObject
public void copyBoundObject(@NonNull Object fromInstance, @NonNull Object toInstance) throws BindingException
Description copied from interface:IBoundNamedInstance
Copy this instance from one parent object to another.- Specified by:
copyBoundObject
in interfaceIBoundNamedInstance
- Parameters:
fromInstance
- the object to copy fromtoInstance
- the object to copy to- Throws:
BindingException
- if an error occurred while processing the object bindings
-
copyItem
public Object copyItem(Object fromItem, Object toInstance) throws BindingException
- Specified by:
copyItem
in interfaceIBoundNamedModelInstance
- Throws:
BindingException
-
getParentContainer
public CLASS_BINDING getParentContainer()
- Specified by:
getParentContainer
in interfaceIInstance
-
getContainingDefinition
public CLASS_BINDING getContainingDefinition()
- Specified by:
getContainingDefinition
in interfaceIInstance
-
getParentClassBinding
public CLASS_BINDING getParentClassBinding()
Description copied from interface:IBoundNamedInstance
Get theIClassBinding
for the Java class within which this property exists.- Specified by:
getParentClassBinding
in interfaceIBoundNamedInstance
- Returns:
- the containing class's binding
-
-