public interface MIntegerString extends MString
This represents a string
field containing an integer number
representation.
Represented internally as a BigInteger
.
It is possible to parse the value of an item of this type from any object
whose toString
method returns a value that can be
successfully supplied to the BigInteger(String)
constructor. In addition, if the field
permits
it, an empty field (zero length string}
could also be parsed.
The easiest way to create an integer metadata field is using
MetadataFactory.integer(String)
or one of its variants that allow an
initial value to be supplied. For example:
MetadataFactory factory = Diffusion.metadata();
MIntegerString integer = factory.integer("A",100);
Alternatively for more complex requirements a MIntegerString.Builder
may be used.Modifier and Type | Interface and Description |
---|---|
static interface |
MIntegerString.Builder
Integer string field metadata builder.
|
MString.AbstractBuilder<T,B>
MField.FieldType
MNode.DataType, MNode.Multiplicity, MNode.NodeType
allowsEmpty, getDefaultValue
getFieldType
getDataType, getFullName, getMultiplicity, getName, getNodeType, getParent
Copyright © 2016 Push Technology Ltd. All Rights Reserved.