Module dev.metaschema.databind
Class UseName
java.lang.Object
dev.metaschema.databind.model.metaschema.binding.UseName
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaField(formalName="Use Name",
description="Allows the name of the definition to be overridden.",
name="use-name",
moduleClass=MetaschemaModelModule.class)
public class UseName
extends Object
implements dev.metaschema.core.model.IBoundObject
Allows the name of the definition to be overridden.
-
Constructor Summary
ConstructorsConstructorDescriptionUseName()Constructs a newdev.metaschema.databind.model.metaschema.binding.UseNameinstance with no metadata.UseName(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.databind.model.metaschema.binding.UseNameinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptiongetIndex()Get the numeric Index.dev.metaschema.core.model.IMetaschemaDatagetName()Get the field value.voidsetIndex(BigInteger value) Set the numeric Index.voidSet the field value.toString()
-
Constructor Details
-
UseName
public UseName()Constructs a newdev.metaschema.databind.model.metaschema.binding.UseNameinstance with no metadata. -
UseName
Constructs a newdev.metaschema.databind.model.metaschema.binding.UseNameinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getIndex
Get the numeric Index.Used for binary formats instead of the textual name.
- Returns:
- the index value, or
nullif not set
-
setIndex
Set the numeric Index.Used for binary formats instead of the textual name.
- Parameters:
value- the index value to set, ornullto clear
-
getName
Get the field value.- Returns:
- the value
-
setName
Set the field value.- Parameters:
value- the value to set
-
toString
-