public interface MCustomString extends MString
A string
field whose representation is handled by a server
side field handler. The handler is specified in terms of the full class name
of a class which is available at the server and implements the
com.pushtechnology.diffusion.api.data.metadata.CustomFieldHandler
interface.
The easiest way to create a custom string definition is using the
MetadataFactory.customString(String, String)
method. For example:
MetadataFactory factory = Diffusion.metadata();
MCustomString mString = factory.customString("A","CustomHandlerClass");
For more complex requirements a MCustomString.Builder
can be used.Modifier and Type | Interface and Description |
---|---|
static interface |
MCustomString.Builder
Custom String field metadata builder.
|
MString.AbstractBuilder<T,B>
MField.FieldType
MNode.DataType, MNode.Multiplicity, MNode.NodeType
Modifier and Type | Method and Description |
---|---|
String |
getHandler()
Return the custom string handler class name.
|
allowsEmpty, getDefaultValue
getFieldType
getDataType, getFullName, getMultiplicity, getName, getNodeType, getParent
String getHandler()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.