@Generated(value="com.neeve.protobuf.adm.ProtobufAdmNodeGenerator", date="Tue Sep 16 04:36:05 UTC 2025") @AdmGenerated(encoding="xbuf", compatLevel="5.0.0", admVersion="Unknown Version", date="9/16/25 4:36 AM", buildInfo="nvx-rumi-server-4.0.595 (Rumi ADM Maven Plugin)") @AdmFactoryInfo(factoryClass=SrvMonCncFactory.class, vfid=36, ofid=36, typeId=302) public final class SrvMonOptionDescription extends Object implements ISrvMonOptionDescription, MessageReflector, com.neeve.query.impl.index.IdxMappable, UtlPool.Item<SrvMonOptionDescription>, AdmRuntime.BufferSizer
| ADM Type | Embedded Entity |
| Factory | SrvMonCncFactory |
| ADM Field Summary |
|---|
| Field | Type | Id | Description |
|---|---|---|---|
| defaultValue | String | 19 | The default value for an option when not specified ... or not set if no default. |
| description | String | 22 | The command description. |
| displayName | String | 23 |
The display name for the argument.
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command. |
| longForm | String | 17 | The long form of the command. e.g. 'option' for -option. |
| required | Boolean | 18 | Whether or not the option is required. |
| shortForm | Char | 16 | The short form of the command. e.g. 'o' for -o. |
| type | SrvMonOptionType |
20 | Describes the type of the argument. |
| validValues | String[] | 21 | When set, restricts the set of valid values for the command. |
| Modifier and Type | Class and Description |
|---|---|
static class |
SrvMonOptionDescription.Deserializer
The deserializer
|
static class |
SrvMonOptionDescription.PacketBody
The backing packet type for SrvMonOptionDescription (used internally for serialization purposes).
|
static class |
SrvMonOptionDescription.Pojo
The POJO
|
static class |
SrvMonOptionDescription.Serializer
The serializer
|
| Modifier and Type | Field and Description |
|---|---|
static SrvMonOptionDescription[] |
EMPTY_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
SrvMonOptionDescription |
acquire() |
void |
addValidValues(String val)
Adds the provided value to the list of 'validValues' values.
|
boolean |
appendFieldValueTo(Object node,
String[] pathComponents,
XString target)
Appends a reflected field value as a string into the given XString.
|
boolean |
appendFieldValueTo(Object message,
String name,
XString target)
Appends a reflected field value as a string into the given XString.
|
void |
clear() |
void |
clear(boolean disposeMembers) |
void |
clearContent()
Deprecated.
|
void |
clearDefaultValue()
Clears the value of 'defaultValue'.
|
void |
clearDescription()
Clears the value of 'description'.
|
void |
clearDisplayName()
Clears the value of 'displayName'.
|
void |
clearLongForm()
Clears the value of 'longForm'.
|
void |
clearRequired()
Clears the value of 'required'.
|
void |
clearShortForm()
Clears the value of 'shortForm'.
|
void |
clearType()
Clears the value of 'type'.
|
void |
clearValidValues()
Clears the value of 'validValues'.
|
Object |
clone()
Creates a clone of this object.
|
SrvMonOptionDescription |
copy() |
void |
copyInto(SrvMonOptionDescription copy) |
static SrvMonOptionDescription |
create() |
SrvMonOptionDescription |
deserializeFrom(byte[] array,
int offset,
int len) |
SrvMonOptionDescription |
deserializeFrom(ByteBuffer buffer) |
SrvMonOptionDescription |
deserializeFrom(IOBuffer buffer,
int offset,
int len) |
SrvMonOptionDescription |
deserializeFrom(IOElasticBuffer buffer,
int offset,
int len) |
SrvMonOptionDescription |
deserializeFrom(long addr,
int offset,
int len) |
SrvMonOptionDescription |
deserializeFrom(PktPacket packet) |
SrvMonOptionDescription |
deserializeFrom(SrvMonOptionDescription.Deserializer deserializer) |
SrvMonOptionDescription |
deserializeFrom(SrvMonOptionDescription val) |
SrvMonOptionDescription |
deserializeFromByteArray(byte[] array) |
SrvMonOptionDescription |
deserializeFromByteBuffer(ByteBuffer buffer) |
SrvMonOptionDescription |
deserializeFromJson(String json) |
SrvMonOptionDescription |
deserializeFromNative(long addr,
int offset,
int len)
Deprecated.
|
SrvMonOptionDescription |
deserializeFromPacket(PktPacket packet) |
SrvMonOptionDescription |
deserializeFromRawJson(String json) |
SrvMonOptionDescription.Deserializer |
deserializer() |
SrvMonOptionDescription.Deserializer |
deserializer(boolean createBuffer) |
void |
dispose() |
void |
disposeDeserializer() |
void |
disposePojo() |
void |
disposePojo(boolean sync) |
void |
disposeSerializedBuffer() |
void |
disposeSerializedBuffer(boolean gcDisposed) |
void |
disposeSerializer() |
long |
ensureCapacity(long addr,
int capacity)
Method invoked by the serializer to ensure there is enough space in the target
buffer to accommodate a field being serialized
|
boolean |
fieldExists(Object message,
String name)
Check if a field of the supplied name exists in a message.
|
String |
getDefaultValue()
Gets the value of 'defaultValue'.
|
static int |
getDefaultValueFieldId() |
<T extends XString> |
getDefaultValueTo(IXStringFactory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getDefaultValueTo(XString val)
Copies the value of 'defaultValue' into the provided XString.
|
XString |
getDefaultValueUnsafe()
Gets the raw value of 'defaultValue'.
|
String |
getDescription()
Gets the value of 'description'.
|
static int |
getDescriptionFieldId() |
<T extends XString> |
getDescriptionTo(IXStringFactory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getDescriptionTo(XString val)
Copies the value of 'description' into the provided XString.
|
XString |
getDescriptionUnsafe()
Gets the raw value of 'description'.
|
String |
getDisplayName()
Gets the value of 'displayName'.
|
static int |
getDisplayNameFieldId() |
<T extends XString> |
getDisplayNameTo(IXStringFactory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getDisplayNameTo(XString val)
Copies the value of 'displayName' into the provided XString.
|
XString |
getDisplayNameUnsafe()
Gets the raw value of 'displayName'.
|
static <T> IRogFieldReflector<SrvMonOptionDescription,T> |
getFieldReflector(String name)
Get a field reflector.
|
static <T> IRogFieldReflector<SrvMonOptionDescription,T> |
getFieldReflector(String[] pathComponents)
Get a field reflector.
|
XString |
getFieldValueAsRawString(Object message,
String name)
Get the value of a reflectable field in a message as a string.
|
XString |
getFieldValueAsRawString(Object message,
String[] pathComponents)
Get the value of a reflectable field in a message as a string.
|
String |
getFieldValueAsString(Object message,
String name)
Get the value of a reflectable field in a message as a string.
|
String |
getFieldValueAsString(Object message,
String[] pathComponents)
Get the value of a reflectable field in a message as a string.
|
String |
getLongForm()
Gets the value of 'longForm'.
|
static int |
getLongFormFieldId() |
<T extends XString> |
getLongFormTo(IXStringFactory<T> factory)
Copies the value of this String field into a new XString from the given factory.
|
void |
getLongFormTo(XString val)
Copies the value of 'longForm' into the provided XString.
|
XString |
getLongFormUnsafe()
Gets the raw value of 'longForm'.
|
int |
getOwnershipCount() |
UtlPool<SrvMonOptionDescription> |
getPool()
Get a pool item's pool.
|
Object |
getQueryFieldValue(String name)
Gets an indexable value identified by a key.
|
boolean |
getRequired()
Gets the value of 'required'.
|
Boolean |
getRequiredAsObject()
Gets the value of 'required'.
|
static int |
getRequiredFieldId() |
long |
getSerializedBuffer() |
int |
getSerializedBufferCapacity() |
int |
getSerializedBufferLength() |
int |
getSerializeToNativeLength()
Deprecated.
|
char |
getShortForm()
Gets the value of 'shortForm'.
|
Character |
getShortFormAsObject()
Gets the value of 'shortForm'.
|
static int |
getShortFormFieldId() |
SrvMonOptionType |
getType()
Gets the value of 'type'.
|
static int |
getTypeFieldId() |
void |
getValidationErrors(List<XString> results,
String errorPrefix)
Collects validation errors into the provided list.
|
String[] |
getValidValues()
Gets the value of 'validValues'.
|
String[] |
getValidValuesEmptyIfNull()
Gets the value of 'validValues' or an empty array if the value is
null or not set. |
static int |
getValidValuesFieldId() |
XStringIterator |
getValidValuesIterator()
Gets the value of 'validValues' as iterator of values.
|
boolean |
hasDefaultValue()
Checks for the presence of 'defaultValue'.
|
boolean |
hasDescription()
Checks for the presence of 'description'.
|
boolean |
hasDirtyPojo() |
boolean |
hasDisplayName()
Checks for the presence of 'displayName'.
|
boolean |
hasLongForm()
Checks for the presence of 'longForm'.
|
boolean |
hasPojo() |
boolean |
hasRequired()
Checks for the presence of 'required'.
|
boolean |
hasSerializedBuffer() |
boolean |
hasShortForm()
Checks for the presence of 'shortForm'.
|
boolean |
hasType()
Checks for the presence of 'type'.
|
SrvMonOptionDescription |
init()
Initialize an item.
|
boolean |
isFieldReflectable(Object message,
String name)
Check if a field of the supplied name is reflectable.
|
boolean |
isValid()
Tests if this object has any validation errors.
|
void |
lendDefaultValue(XString val)
Lends the value of 'defaultValue' to this object.
|
void |
lendDescription(XString val)
Lends the value of 'description' to this object.
|
void |
lendDisplayName(XString val)
Lends the value of 'displayName' to this object.
|
void |
lendLongForm(XString val)
Lends the value of 'longForm' to this object.
|
boolean |
needsSync()
Check if a view needs to be sync'd for reflection.
|
SrvMonOptionDescription.Pojo |
pojo() |
SrvMonOptionDescription.Pojo |
pojo(boolean onlyPojos) |
void |
reset() |
void |
reset(boolean disposeMembers) |
SrvMonOptionDescription.Serializer |
serializer() |
SrvMonOptionDescription.Serializer |
serializer(int minimumLength) |
SrvMonOptionDescription.Serializer |
serializer(int length,
boolean autoResizeTargetBuffer) |
int |
serializeTo(byte[] array,
int offset) |
int |
serializeTo(ByteBuffer buffer) |
int |
serializeTo(IOBuffer buffer,
int offset) |
int |
serializeTo(IOElasticBuffer buffer,
int offset) |
int |
serializeTo(long addr,
int offset) |
int |
serializeTo(PktPacket packet) |
int |
serializeTo(SrvMonOptionDescription.Serializer serializer) |
byte[] |
serializeToByteArray() |
ByteBuffer |
serializeToByteBuffer() |
IOBuffer |
serializeToIOBuffer(boolean useNative) |
String |
serializeToJson() |
int |
serializeToNative(long addr,
int offset)
Deprecated.
|
PktPacket |
serializeToPacket() |
String |
serializeToRawJson() |
void |
setAsReadOnly() |
void |
setDefaultValue(String val)
Sets the value of 'defaultValue'.
|
void |
setDefaultValueFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setDefaultValueFrom(XString val)
Copies the provided XString value into this object's 'defaultValue'.
|
void |
setDescription(String val)
Sets the value of 'description'.
|
void |
setDescriptionFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setDescriptionFrom(XString val)
Copies the provided XString value into this object's 'description'.
|
void |
setDisplayName(String val)
Sets the value of 'displayName'.
|
void |
setDisplayNameFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setDisplayNameFrom(XString val)
Copies the provided XString value into this object's 'displayName'.
|
void |
setLongForm(String val)
Sets the value of 'longForm'.
|
void |
setLongFormFrom(long val)
Sets the value of this String field to the given numeric value.
|
void |
setLongFormFrom(XString val)
Copies the provided XString value into this object's 'longForm'.
|
SrvMonOptionDescription |
setPool(UtlPool<SrvMonOptionDescription> pool)
Set a pool item's pool.
|
void |
setRequired(boolean val)
Sets the value of 'required'.
|
void |
setShortForm(char val)
Sets the value of 'shortForm'.
|
void |
setType(SrvMonOptionType val)
Sets the value of 'type'.
|
void |
setValidValues(String[] val)
Sets the value of 'validValues'.
|
void |
setValidValuesFrom(XIterator<String> val)
Sets the value of 'validValues' using the values from the provided iterator.
|
void |
sync() |
String |
toString() |
SrvMonOptionDescription |
wrap(IOBuffer buffer,
int len) |
public static final SrvMonOptionDescription[] EMPTY_ARRAY
public static SrvMonOptionDescription create()
public final boolean hasSerializedBuffer()
public final long getSerializedBuffer()
public final int getSerializedBufferCapacity()
public final int getSerializedBufferLength()
@Deprecated public final int getSerializeToNativeLength()
public final SrvMonOptionDescription.Serializer serializer(int length, boolean autoResizeTargetBuffer)
public final SrvMonOptionDescription.Serializer serializer(int minimumLength)
public final SrvMonOptionDescription.Serializer serializer()
public final long ensureCapacity(long addr,
int capacity)
AdmRuntime.BufferSizerensureCapacity in interface AdmRuntime.BufferSizeraddr - The native address of the target buffercapacity - The required capacity of the bufferThis method is invoked by a serializer each time it serializes a field or part of a field to the target buffer to ensure that the target buffer has the desired capacity to hold the data being added.
public final SrvMonOptionDescription.Deserializer deserializer(boolean createBuffer)
public final SrvMonOptionDescription.Deserializer deserializer()
public final boolean hasPojo()
public final boolean hasDirtyPojo()
public final SrvMonOptionDescription.Pojo pojo(boolean onlyPojos)
public final SrvMonOptionDescription.Pojo pojo()
public final void disposeSerializedBuffer(boolean gcDisposed)
public final void disposeSerializedBuffer()
public final void disposeSerializer()
public final void disposeDeserializer()
public final void disposePojo(boolean sync)
public final void disposePojo()
public final void clear(boolean disposeMembers)
public final void clear()
@Deprecated public final void clearContent()
public final void reset(boolean disposeMembers)
public final void reset()
public final String serializeToRawJson()
public final int serializeTo(SrvMonOptionDescription.Serializer serializer)
public final void sync()
public final byte[] serializeToByteArray()
public final int serializeTo(byte[] array,
int offset)
public final ByteBuffer serializeToByteBuffer()
public final int serializeTo(ByteBuffer buffer)
public final IOBuffer serializeToIOBuffer(boolean useNative)
public final int serializeTo(IOBuffer buffer, int offset)
public final int serializeTo(IOElasticBuffer buffer, int offset)
public final PktPacket serializeToPacket()
public final int serializeTo(PktPacket packet)
public final int serializeTo(long addr,
int offset)
@Deprecated public final int serializeToNative(long addr, int offset)
public final String serializeToJson()
public final SrvMonOptionDescription deserializeFromRawJson(String json)
public final SrvMonOptionDescription deserializeFrom(SrvMonOptionDescription.Deserializer deserializer)
public final SrvMonOptionDescription deserializeFrom(SrvMonOptionDescription val)
public final SrvMonOptionDescription wrap(IOBuffer buffer, int len)
public final SrvMonOptionDescription deserializeFromByteArray(byte[] array)
public final SrvMonOptionDescription deserializeFrom(byte[] array, int offset, int len)
public final SrvMonOptionDescription deserializeFromByteBuffer(ByteBuffer buffer)
public final SrvMonOptionDescription deserializeFrom(ByteBuffer buffer)
public final SrvMonOptionDescription deserializeFrom(IOBuffer buffer, int offset, int len)
public final SrvMonOptionDescription deserializeFrom(IOElasticBuffer buffer, int offset, int len)
public final SrvMonOptionDescription deserializeFromPacket(PktPacket packet)
public final SrvMonOptionDescription deserializeFrom(PktPacket packet)
public final SrvMonOptionDescription deserializeFrom(long addr, int offset, int len)
@Deprecated public final SrvMonOptionDescription deserializeFromNative(long addr, int offset, int len)
public final SrvMonOptionDescription deserializeFromJson(String json)
public final void copyInto(SrvMonOptionDescription copy)
public final SrvMonOptionDescription copy()
public boolean needsSync()
MessageReflectorneedsSync in interface MessageReflectorpublic final boolean fieldExists(Object message, String name)
MessageReflectorfieldExists in interface MessageReflectormessage - The message to check in.name - The field to check for.public final boolean isFieldReflectable(Object message, String name)
MessageReflectorisFieldReflectable in interface MessageReflectormessage - The message to check in.name - The field to check for.public final String getFieldValueAsString(Object message, String name)
MessageReflector
Note that this method is generally less efficient than its variant
MessageReflector.getFieldValueAsString(Object, String[]) since this method requires
splitting the supplied path name into its dot separated path components. In cases
where the caller intends to reuse the same path name often, it is better
for the caller to supply it in split form.
getFieldValueAsString in interface MessageReflectormessage - The message to introspect.name - The field whose value is to be retrieved specified as a bean pathMessageReflector.fieldExists(java.lang.Object, java.lang.String) and MessageReflector.isFieldReflectable(java.lang.Object, java.lang.String) methodspublic final String getFieldValueAsString(Object message, String[] pathComponents)
MessageReflectorgetFieldValueAsString in interface MessageReflectormessage - The message to introspect.pathComponents - The path components to use to access the field.MessageReflector.fieldExists(java.lang.Object, java.lang.String) and MessageReflector.isFieldReflectable(java.lang.Object, java.lang.String) methodspublic final XString getFieldValueAsRawString(Object message, String name)
MessageReflector
Note that this method is generally less efficient than its variant
MessageReflector.getFieldValueAsString(Object, String[]) since this method requires
splitting the supplied path name into its dot separated path components. In cases
where the caller intends to reuse the same path name often, it is better
for the caller to supply it in split form.
getFieldValueAsRawString in interface MessageReflectormessage - The message to introspect.name - The field whose value is to be retrieved specified as a bean pathMessageReflector.fieldExists(java.lang.Object, java.lang.String) and MessageReflector.isFieldReflectable(java.lang.Object, java.lang.String) methodspublic final XString getFieldValueAsRawString(Object message, String[] pathComponents)
MessageReflectorgetFieldValueAsRawString in interface MessageReflectormessage - The message to introspect.pathComponents - The path components to use to access the field.MessageReflector.fieldExists(java.lang.Object, java.lang.String) and MessageReflector.isFieldReflectable(java.lang.Object, java.lang.String) methodspublic final boolean appendFieldValueTo(Object message, String name, XString target)
MessageReflectorIf the field is reflectable and has a non null value, then it will be appended otherwise, this method must return false.
appendFieldValueTo in interface MessageReflectormessage - the node on which to reflect (which need not be this object).name - the bean path to the field.target - The target XString into which to append the result.public final boolean appendFieldValueTo(Object node, String[] pathComponents, XString target)
MessageReflectorIf the field is reflectable and has a non null value, then it will be appended otherwise, this method must return false.
appendFieldValueTo in interface MessageReflectornode - the node on which to reflect (which need not be this object).pathComponents - the bean path to the field on the provided object split by its '.' separated components.target - The target XString into which to append the result.public final void setAsReadOnly()
public static final int getShortFormFieldId()
public final void setShortForm(char val)
ISrvMonOptionDescriptionsetShortForm in interface ISrvMonOptionDescriptionval - The value to set.public final char getShortForm()
ISrvMonOptionDescriptiongetShortForm in interface ISrvMonOptionDescriptionpublic final Character getShortFormAsObject()
ISrvMonOptionDescriptiongetShortFormAsObject in interface ISrvMonOptionDescriptionpublic final boolean hasShortForm()
ISrvMonOptionDescriptionhasShortForm in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getShortForm()public final void clearShortForm()
ISrvMonOptionDescriptionclearShortForm in interface ISrvMonOptionDescriptionISrvMonOptionDescription.setShortForm(char)public static final int getRequiredFieldId()
public final void setRequired(boolean val)
ISrvMonOptionDescriptionsetRequired in interface ISrvMonOptionDescriptionval - The value to set.public final boolean getRequired()
ISrvMonOptionDescriptiongetRequired in interface ISrvMonOptionDescriptionpublic final Boolean getRequiredAsObject()
ISrvMonOptionDescriptiongetRequiredAsObject in interface ISrvMonOptionDescriptionpublic final boolean hasRequired()
ISrvMonOptionDescriptionhasRequired in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getRequired()public final void clearRequired()
ISrvMonOptionDescriptionclearRequired in interface ISrvMonOptionDescriptionISrvMonOptionDescription.setRequired(boolean)public static final int getTypeFieldId()
public final void setType(SrvMonOptionType val)
ISrvMonOptionDescriptionsetType in interface ISrvMonOptionDescriptionval - The value to set.public final SrvMonOptionType getType()
ISrvMonOptionDescriptiongetType in interface ISrvMonOptionDescriptionpublic final boolean hasType()
ISrvMonOptionDescriptionhasType in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getType()public final void clearType()
ISrvMonOptionDescriptionclearType in interface ISrvMonOptionDescriptionISrvMonOptionDescription.setType(SrvMonOptionType)public static final int getLongFormFieldId()
public final void setLongForm(String val)
ISrvMonOptionDescriptionsetLongForm in interface ISrvMonOptionDescriptionval - The value to set.public final String getLongForm()
ISrvMonOptionDescriptiongetLongForm in interface ISrvMonOptionDescriptionpublic final void lendLongForm(XString val)
ISrvMonOptionDescriptionThis method is equivalent to setLongForm except that it allows this object to defer copying the value until this object is next serialized. This means that the caller must not modify or dispose the value being passed in to this method.
Note, also, that unlike lendXXX methods for embedded entities, this method does not attempt to acquire or dispose of the value passed in even if the value is poolable.
lendLongForm in interface ISrvMonOptionDescriptionval - The value to set.public final void setLongFormFrom(long val)
ISrvMonOptionDescription
NOTE:
This is the same as calling ISrvMonOptionDescription.setLongForm(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setLongFormFrom in interface ISrvMonOptionDescriptionpublic final <T extends XString> T getLongFormTo(IXStringFactory<T> factory)
ISrvMonOptionDescription
If the value of this field is not null this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getLongFormTo in interface ISrvMonOptionDescriptionfactory - The factory from which to get the XString to copy into and returnnull.public final void setLongFormFrom(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonOptionDescription.setLongForm(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setLongFormFrom in interface ISrvMonOptionDescriptionpublic final void getLongFormTo(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonOptionDescription.getLongForm() bec
because it can avoid decoding the value into an String.
getLongFormTo in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getLongForm()public final XString getLongFormUnsafe()
ISrvMonOptionDescription
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getLongFormUnsafe in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getLongForm()public final boolean hasLongForm()
ISrvMonOptionDescriptionhasLongForm in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getLongForm()public final void clearLongForm()
ISrvMonOptionDescriptionclearLongForm in interface ISrvMonOptionDescriptionISrvMonOptionDescription.setLongForm(String)public static final int getDefaultValueFieldId()
public final void setDefaultValue(String val)
ISrvMonOptionDescriptionsetDefaultValue in interface ISrvMonOptionDescriptionval - The value to set.public final String getDefaultValue()
ISrvMonOptionDescriptiongetDefaultValue in interface ISrvMonOptionDescriptionpublic final void lendDefaultValue(XString val)
ISrvMonOptionDescriptionThis method is equivalent to setDefaultValue except that it allows this object to defer copying the value until this object is next serialized. This means that the caller must not modify or dispose the value being passed in to this method.
Note, also, that unlike lendXXX methods for embedded entities, this method does not attempt to acquire or dispose of the value passed in even if the value is poolable.
lendDefaultValue in interface ISrvMonOptionDescriptionval - The value to set.public final void setDefaultValueFrom(long val)
ISrvMonOptionDescription
NOTE:
This is the same as calling ISrvMonOptionDescription.setDefaultValue(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setDefaultValueFrom in interface ISrvMonOptionDescriptionpublic final <T extends XString> T getDefaultValueTo(IXStringFactory<T> factory)
ISrvMonOptionDescription
If the value of this field is not null this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getDefaultValueTo in interface ISrvMonOptionDescriptionfactory - The factory from which to get the XString to copy into and returnnull.public final void setDefaultValueFrom(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonOptionDescription.setDefaultValue(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setDefaultValueFrom in interface ISrvMonOptionDescriptionpublic final void getDefaultValueTo(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonOptionDescription.getDefaultValue() bec
because it can avoid decoding the value into an String.
getDefaultValueTo in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getDefaultValue()public final XString getDefaultValueUnsafe()
ISrvMonOptionDescription
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getDefaultValueUnsafe in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getDefaultValue()public final boolean hasDefaultValue()
ISrvMonOptionDescriptionhasDefaultValue in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getDefaultValue()public final void clearDefaultValue()
ISrvMonOptionDescriptionclearDefaultValue in interface ISrvMonOptionDescriptionISrvMonOptionDescription.setDefaultValue(String)public static final int getValidValuesFieldId()
public final void setValidValues(String[] val)
ISrvMonOptionDescriptionsetValidValues in interface ISrvMonOptionDescriptionval - The value to set.public final void setValidValuesFrom(XIterator<String> val)
ISrvMonOptionDescription
This method will call XIterator.toFirst() before and after setting the values, meaning
that all values from the iterator will be set and the iterator will be reset on return.
This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'validValues' accessor can copy the values without iteration.
NOTE:
Passing a null or empty iterator has the same affect as calling ISrvMonOptionDescription.setValidValues(String[]) with
a value of null.
setValidValuesFrom in interface ISrvMonOptionDescriptionval - the values to set.public final void addValidValues(String val)
ISrvMonOptionDescriptionThis method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'validValues' accessor can copy the values without iteration.
For objects generated with json encoding, or transactional state entities, using this method is currently efficient than doing a bulk set. For xbuf generated messages however, this method is optimized to directly serialize to an encoded backing buffer.
addValidValues in interface ISrvMonOptionDescriptionval - the value to add.public final String[] getValidValues()
ISrvMonOptionDescription
If the field is not set this method will return null.
getValidValues in interface ISrvMonOptionDescriptionnull.public final String[] getValidValuesEmptyIfNull()
ISrvMonOptionDescriptionnull or not set.
getValidValuesEmptyIfNull in interface ISrvMonOptionDescriptionnull if not set.ISrvMonOptionDescription.getValidValues()public final XStringIterator getValidValuesIterator()
ISrvMonOptionDescriptionThis method will always return a non null iterator value. The returned iterator is not threadsafe, and the caller may not hold on to it beyond the pooling lifespan of this object. Depending on the implementation, the same iterator instance may be returned by this object on each call to avoid garbage. Each time this method is called the iterator is reset by calling its toFirst() method. Callers should therefore be especially careful about calling this method while iterating on the iterator returned by this method.
This method is zero garbage for Xbuf generated classes, and this method is optimized such that
passing the returned iterator to another object's setXXX(com.neeve.lang.XStringIterator) method
can perform a direct copy of the underlying values without iteration.
getValidValuesIterator in interface ISrvMonOptionDescriptionpublic final void clearValidValues()
ISrvMonOptionDescriptionclearValidValues in interface ISrvMonOptionDescriptionISrvMonOptionDescription.setValidValues(String[])public static final int getDescriptionFieldId()
public final void setDescription(String val)
ISrvMonOptionDescriptionsetDescription in interface ISrvMonOptionDescriptionval - The value to set.public final String getDescription()
ISrvMonOptionDescriptiongetDescription in interface ISrvMonOptionDescriptionpublic final void lendDescription(XString val)
ISrvMonOptionDescriptionThis method is equivalent to setDescription except that it allows this object to defer copying the value until this object is next serialized. This means that the caller must not modify or dispose the value being passed in to this method.
Note, also, that unlike lendXXX methods for embedded entities, this method does not attempt to acquire or dispose of the value passed in even if the value is poolable.
lendDescription in interface ISrvMonOptionDescriptionval - The value to set.public final void setDescriptionFrom(long val)
ISrvMonOptionDescription
NOTE:
This is the same as calling ISrvMonOptionDescription.setDescription(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setDescriptionFrom in interface ISrvMonOptionDescriptionpublic final <T extends XString> T getDescriptionTo(IXStringFactory<T> factory)
ISrvMonOptionDescription
If the value of this field is not null this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getDescriptionTo in interface ISrvMonOptionDescriptionfactory - The factory from which to get the XString to copy into and returnnull.public final void setDescriptionFrom(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonOptionDescription.setDescription(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setDescriptionFrom in interface ISrvMonOptionDescriptionpublic final void getDescriptionTo(XString val)
ISrvMonOptionDescription
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonOptionDescription.getDescription() bec
because it can avoid decoding the value into an String.
getDescriptionTo in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getDescription()public final XString getDescriptionUnsafe()
ISrvMonOptionDescription
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getDescriptionUnsafe in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getDescription()public final boolean hasDescription()
ISrvMonOptionDescriptionhasDescription in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getDescription()public final void clearDescription()
ISrvMonOptionDescriptionclearDescription in interface ISrvMonOptionDescriptionISrvMonOptionDescription.setDescription(String)public static final int getDisplayNameFieldId()
public final void setDisplayName(String val)
ISrvMonOptionDescriptionIf a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
setDisplayName in interface ISrvMonOptionDescriptionval - The value to set.public final String getDisplayName()
ISrvMonOptionDescriptionIf a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
getDisplayName in interface ISrvMonOptionDescriptionpublic final void lendDisplayName(XString val)
ISrvMonOptionDescriptionThis method is equivalent to setDisplayName except that it allows this object to defer copying the value until this object is next serialized. This means that the caller must not modify or dispose the value being passed in to this method.
If a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
Note, also, that unlike lendXXX methods for embedded entities, this method does not attempt to acquire or dispose of the value passed in even if the value is poolable.
lendDisplayName in interface ISrvMonOptionDescriptionval - The value to set.public final void setDisplayNameFrom(long val)
ISrvMonOptionDescriptionIf a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
NOTE:
This is the same as calling ISrvMonOptionDescription.setDisplayName(String).
with Long.valueOf(val).toString(), except that using this method is a zero garbage
operation for Xbuf encoding.
setDisplayNameFrom in interface ISrvMonOptionDescriptionpublic final <T extends XString> T getDisplayNameTo(IXStringFactory<T> factory)
ISrvMonOptionDescriptionIf a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
If the value of this field is not null this method creates an XString from
the provided Factory, copies this field's value into the type, and returns the new
XString.);
This is a zero garbage operation if the provided factory is backed by a pool and the pool; has available instances;
getDisplayNameTo in interface ISrvMonOptionDescriptionfactory - The factory from which to get the XString to copy into and returnnull.public final void setDisplayNameFrom(XString val)
ISrvMonOptionDescriptionIf a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this setter
can be more efficient than ISrvMonOptionDescription.setDisplayName(String)
because it avoids encoding the value into a String if the given XString is already encoded.
setDisplayNameFrom in interface ISrvMonOptionDescriptionpublic final void getDisplayNameTo(XString val)
ISrvMonOptionDescriptionIf a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
NOTE:
This is a Zero Garbage operation for XBuf encoded objects. Additionally, this getter
can be more efficient than ISrvMonOptionDescription.getDisplayName() bec
because it can avoid decoding the value into an String.
getDisplayNameTo in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getDisplayName()public final XString getDisplayNameUnsafe()
ISrvMonOptionDescriptionIf a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
NOTE:
This method retrieves the raw value backed by this object's buffer. This is a useful operation
when copying this field value to another object because it avoids copying the data into an intermediate
XString and instead allows direct byte transfer from the raw value to the target object.
However, this accessor is inherently unsafe because the buffer backing this object can be changed which would consequently invalidate the XString returned by this method. Consequently, the caller must not retain the returned raw value beyond the scope of this object's lifespan and access to the raw value follows the same threading rules as access to this object.
Additionally, the caller must not in any way mutate or modify the returned value as doing so could corrupt this object's backing buffer.
getDisplayNameUnsafe in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getDisplayName()public final boolean hasDisplayName()
ISrvMonOptionDescriptionIf a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
hasDisplayName in interface ISrvMonOptionDescriptionISrvMonOptionDescription.getDisplayName()public final void clearDisplayName()
ISrvMonOptionDescriptionIf a display name is not provided then the name should be used by tools. The display name is for display purposes only and cannot be used to invoke a command.
clearDisplayName in interface ISrvMonOptionDescriptionISrvMonOptionDescription.setDisplayName(String)public static final <T> IRogFieldReflector<SrvMonOptionDescription,T> getFieldReflector(String name)
name - The name of the field ('.' delimited for nested fields)public static final <T> IRogFieldReflector<SrvMonOptionDescription,T> getFieldReflector(String[] pathComponents)
pathComponents - The path to the field whose reflector is to be returnedpublic final Object getQueryFieldValue(String name)
com.neeve.query.impl.index.IdxMappableImplementation should ensure that the the type of the value returned is consistent across types.
getQueryFieldValue in interface com.neeve.query.impl.index.IdxMappablename - The name of the field whose value is to be accessed.public final SrvMonOptionDescription init()
UtlPool.ItemThis method is invoked by an item pool very time an item is put into the pool. The method should wipe the contents of the item so as to present a fresh instance of the item to the caller when retrieved from the pool.
init in interface UtlPool.Item<SrvMonOptionDescription>public final SrvMonOptionDescription setPool(UtlPool<SrvMonOptionDescription> pool)
UtlPool.ItemThis method is invoked by an item pool at the time an item is added to the pool. The intent is to record the item's source pool in the item so it can be disposed back into the pool when the user is done working with it.
setPool in interface UtlPool.Item<SrvMonOptionDescription>public final UtlPool<SrvMonOptionDescription> getPool()
UtlPool.Item
This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)
getPool in interface UtlPool.Item<SrvMonOptionDescription>UtlPool.Item.setPool(com.neeve.util.UtlPool<T>)public final SrvMonOptionDescription acquire()
public final int getOwnershipCount()
public final void dispose()
public final Object clone()
This method differs from the copy() method in that:
public final boolean isValid()
IRogValidatableisValid in interface IRogValidatablepublic final void getValidationErrors(List<XString> results, String errorPrefix)
IRogValidatablegetValidationErrors in interface IRogValidatableresults - A results list into which validation errors will be collected.errorPrefix - The bean path prefix to use when identifying invalid fields or null if validating a top level entity.Copyright © 2019 N5 Technologies, Inc. All Rights Reserved.