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:
getFormalNamein interfaceINamedModelElement
-
getDescription
public MarkupLine getDescription()
- Specified by:
getDescriptionin interfaceINamedModelElement
-
getUseName
public String getUseName()
- Specified by:
getUseNamein interfaceINamedModelElement
-
isInXmlWrapped
public boolean isInXmlWrapped()
- Specified by:
isInXmlWrappedin interfaceIFieldInstance
-
getMinOccurs
public int getMinOccurs()
- Specified by:
getMinOccursin interfaceIModelInstance
-
getMaxOccurs
public int getMaxOccurs()
- Specified by:
getMaxOccursin interfaceIModelInstance
-
getRemarks
public MarkupMultiline getRemarks()
- Specified by:
getRemarksin interfaceIModelElement
-
toCoordinates
public String toCoordinates()
- Specified by:
toCoordinatesin interfaceIInstance- Specified by:
toCoordinatesin interfaceIModelElement- Specified by:
toCoordinatesin interfaceINamedInstance
-
newDataTypeHandler
protected abstract IDataTypeHandler newDataTypeHandler()
-
getDataTypeHandler
public IDataTypeHandler getDataTypeHandler()
- Specified by:
getDataTypeHandlerin interfaceIBoundNamedModelInstance
-
getField
public Field getField()
Description copied from interface:IBoundNamedInstanceGets the bound Java field associated with this property.- Specified by:
getFieldin interfaceIBoundNamedInstance- Returns:
- the Java field
-
getGroupAsName
public String getGroupAsName()
- Specified by:
getGroupAsNamein interfaceIModelInstance
-
getGroupAsXmlNamespace
public String getGroupAsXmlNamespace()
- Specified by:
getGroupAsXmlNamespacein interfaceIModelInstance
-
getJsonGroupAsBehavior
public JsonGroupAsBehavior getJsonGroupAsBehavior()
- Specified by:
getJsonGroupAsBehaviorin interfaceIModelInstance
-
getXmlGroupAsBehavior
public XmlGroupAsBehavior getXmlGroupAsBehavior()
- Specified by:
getXmlGroupAsBehaviorin interfaceIModelInstance
-
getPropertyInfo
@NonNull public IModelPropertyInfo getPropertyInfo()
Gets information about the bound property.- Specified by:
getPropertyInfoin interfaceIBoundNamedModelInstance- Returns:
- the property information for the bound property
-
getItemValues
public Collection<? extends Object> getItemValues(Object value)
Description copied from interface:IBoundNamedModelInstanceGet the item values associated with the provided value.- Specified by:
getItemValuesin interfaceIBoundNamedModelInstance- Specified by:
getItemValuesin 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 BindingExceptionDescription copied from interface:IBoundNamedInstanceCopy this instance from one parent object to another.- Specified by:
copyBoundObjectin 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:
copyItemin interfaceIBoundNamedModelInstance- Throws:
BindingException
-
getParentContainer
public CLASS_BINDING getParentContainer()
- Specified by:
getParentContainerin interfaceIInstance
-
getContainingDefinition
public CLASS_BINDING getContainingDefinition()
- Specified by:
getContainingDefinitionin interfaceIInstance
-
getParentClassBinding
public CLASS_BINDING getParentClassBinding()
Description copied from interface:IBoundNamedInstanceGet theIClassBindingfor the Java class within which this property exists.- Specified by:
getParentClassBindingin interfaceIBoundNamedInstance- Returns:
- the containing class's binding
-
-