com.neeve.server.mon
Class SrvMonSysGCStats

java.lang.Object
  extended by com.neeve.server.mon.SrvMonSysGCStats
All Implemented Interfaces:
IRogValidatable, ISrvMonSysGCStats, UtlPool.Item<SrvMonSysGCStats>, com.neeve.xbuf.IXbufDesyncer

@Generated(value="com.neeve.adm.AdmXbufGenerator",
           date="Wed Mar 28 10:54:31 EDT 2018")
@AdmGenerated(encoding="Xbuf",
              compatLevel="3.8.0",
              admVersion="nvx-adm v3.7.265 (build 0)",
              date="3/28/18 10:54 AM",
              buildInfo="nvx-talon-3.7.265 (nvx-codegen-plugin)")
@AdmFactoryInfo(factoryClass=SrvMonFactory.class,
                vfid=32,
                ofid=32,
                typeId=214)
public final class SrvMonSysGCStats
extends Object
implements com.neeve.xbuf.IXbufDesyncer, UtlPool.Item<SrvMonSysGCStats>, ISrvMonSysGCStats

Groups together stats related to the JVM garbage collections.


Nested Class Summary
static class SrvMonSysGCStats.Field
          The SrvMonSysGCStats xbuf field (used internally when this entity is used as a field of another entity).
static class SrvMonSysGCStats.ListField
          The SrvMonSysGCStats list field (used internally when this entity is used as an array field of another entity).
 
Field Summary
static SrvMonSysGCStats[] EMPTY_ARRAY
          A preallocated empty array used to avoid garbage when returning empty arrays of this type.
 
Constructor Summary
SrvMonSysGCStats()
           
SrvMonSysGCStats(int initialBackingBufferSize)
           
 
Method Summary
 SrvMonSysGCStats acquire()
           
 void addCollectorsStats(SrvMonSysGCCollectorStats val)
          Adds the provided value to the list of 'collectorsStats' values.
 void clearCollectorsStats()
          Clears the value of 'collectorsStats' Field Description The list of garbage collections that have occurred.
 void clearContent()
           
 void clearXRogType()
           
 Object clone()
          Creates a clone of this object.
 SrvMonSysGCStats copy()
          Creates a copy of this SrvMonSysGCStats.
 void copyInto(SrvMonSysGCStats copy)
          Copies the contents of this SrvMonSysGCStats into the target.
static SrvMonSysGCStats create()
           
static SrvMonSysGCStats createFrom(byte[] serializedContainer)
           
static SrvMonSysGCStats createFrom(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
static SrvMonSysGCStats createFromSerializedXbufContainer(byte[] serializedContainer)
           
static SrvMonSysGCStats createFromSerializedXbufContainer(byte[] serializedContainer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
static com.neeve.xbuf.XbufSchema createSchema()
           
 SrvMonSysGCStats deserializeFromByteArray(byte[] array)
           
 SrvMonSysGCStats deserializeFromByteArray(byte[] array, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
 SrvMonSysGCStats deserializeFromByteBuffer(ByteBuffer buffer)
           
 SrvMonSysGCStats deserializeFromByteBuffer(ByteBuffer buffer, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
 SrvMonSysGCStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length)
           
 SrvMonSysGCStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
 SrvMonSysGCStats deserializeFromNative(long address, int offset, int length)
           
 SrvMonSysGCStats deserializeFromNative(long address, int offset, int length, com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)
           
 int desync(PktBuffer buffer, int pos, boolean frameOnly)
           
 void desyncFieldBitmask()
           
 void dispose()
           
 PktBuffer getBackingBuffer()
           
 SrvMonSysGCCollectorStats[] getCollectorsStats()
          Gets the value of 'collectorsStats' If the field is not set this method will return null.
 SrvMonSysGCCollectorStats[] getCollectorsStatsEmptyIfNull()
          Gets the value of 'collectorsStats' or an empty array if the value is null or not set.
static int getCollectorsStatsFieldId()
          Get the field id for 'collectorsStats' This method can be used to set field interests.
 XIterator<SrvMonSysGCCollectorStats> getCollectorsStatsIterator()
          Gets the value of 'collectorsStats' as iterator of values.
static com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()
           
 boolean getIsReadOnly()
           
 int getOwnerCount()
           
 UtlPool<SrvMonSysGCStats> getPool()
          Get a pool item's pool.
 int getSerializeToNativeLength()
           
 void getValidationErrors(List<XString> results, String errorPrefix)
          Collects validation errors into the provided list.
 short getXRogType()
           
 com.neeve.xbuf.XbufVariableShortField getXRogTypeField()
           
static int getXRogTypeFieldId()
          Get the field id for 'xRogType' This method can be used to set field interests.
 boolean hasXRogType()
           
 SrvMonSysGCStats init()
          Initialize an item.
 boolean isBufferBacked()
           
 boolean isDirty()
           
 boolean isReferenceCounted()
           
 boolean isValid()
          Tests if this object has any validation errors.
 void lendCollectorsStats(SrvMonSysGCCollectorStats val)
          Adds the provided value to the list of 'collectorsStats' values and acquires a reference to it.
 void lendCollectorsStats(SrvMonSysGCCollectorStats[] val)
          Lends the value of 'collectorsStats' Field Description The list of garbage collections that have occurred.
 void lendCollectorsStatsFrom(XIterator<SrvMonSysGCCollectorStats> val)
          Sets the value of 'collectorsStats' by lending the values from the provided iterator.
static void optimizeFor(int val)
           
 byte[] serializeToByteArray()
           
 ByteBuffer serializeToByteBuffer()
           
 com.neeve.io.IOBuffer serializeToIOBuffer(boolean useNative)
           
 int serializeToNative(long address, int addressOffset)
           
 void setAsReadOnly()
           
 void setCollectorsStats(SrvMonSysGCCollectorStats[] val)
          Sets the value of 'collectorsStats' Field Description The list of garbage collections that have occurred.
 void setCollectorsStatsFrom(XIterator<SrvMonSysGCCollectorStats> val)
          Sets the value of 'collectorsStats' using the values from the provided iterator.
static void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)
           
static void setFieldInterest(List<Integer> fieldIds)
           
 SrvMonSysGCStats setPool(UtlPool<SrvMonSysGCStats> pool)
          Set a pool item's pool.
 void setXRogType(short val)
           
 void setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)
           
 void sync()
           
 void syncFieldBitmask()
           
 SrvMonSysGCCollectorStats[] takeCollectorsStats()
          Takes the value of 'collectorsStats' Field Description The list of garbage collections that have occurred.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final SrvMonSysGCStats[] EMPTY_ARRAY
A preallocated empty array used to avoid garbage when returning empty arrays of this type.

Constructor Detail

SrvMonSysGCStats

public SrvMonSysGCStats()

SrvMonSysGCStats

public SrvMonSysGCStats(int initialBackingBufferSize)
Method Detail

create

public static SrvMonSysGCStats create()

createFromSerializedXbufContainer

public static SrvMonSysGCStats createFromSerializedXbufContainer(byte[] serializedContainer,
                                                                 com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

createFromSerializedXbufContainer

public static SrvMonSysGCStats createFromSerializedXbufContainer(byte[] serializedContainer)

createFrom

public static SrvMonSysGCStats createFrom(byte[] serializedContainer,
                                          com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

createFrom

public static SrvMonSysGCStats createFrom(byte[] serializedContainer)

setDesyncPolicy

public static final void setDesyncPolicy(com.neeve.xbuf.XbufDesyncPolicy val)

getDesyncPolicy

public static final com.neeve.xbuf.XbufDesyncPolicy getDesyncPolicy()

setFieldInterest

public static final void setFieldInterest(List<Integer> fieldIds)

clearContent

public final void clearContent()

syncFieldBitmask

public final void syncFieldBitmask()

desyncFieldBitmask

public final void desyncFieldBitmask()

getBackingBuffer

public final PktBuffer getBackingBuffer()

optimizeFor

public static final void optimizeFor(int val)

setAsReadOnly

public final void setAsReadOnly()

getIsReadOnly

public final boolean getIsReadOnly()

getXRogTypeFieldId

public static final int getXRogTypeFieldId()
Get the field id for 'xRogType'

This method can be used to set field interests.

See Also:
getXRogType()

setXRogType

public final void setXRogType(short val)

getXRogType

public final short getXRogType()

setXRogTypeFrom

public final void setXRogTypeFrom(com.neeve.xbuf.XbufVariableShortField val)

getXRogTypeField

public final com.neeve.xbuf.XbufVariableShortField getXRogTypeField()

hasXRogType

public final boolean hasXRogType()

clearXRogType

public final void clearXRogType()

getCollectorsStatsFieldId

public static final int getCollectorsStatsFieldId()
Get the field id for 'collectorsStats'

This method can be used to set field interests.

See Also:
getCollectorsStats()

setCollectorsStats

public final void setCollectorsStats(SrvMonSysGCCollectorStats[] val)
Description copied from interface: ISrvMonSysGCStats
Sets the value of 'collectorsStats'

Field Description

The list of garbage collections that have occurred.

This list will include the most recent collections that have occurred since the last heartbeat, but may also include historical garbage collections as well. The collection count field of each collection can be used to determine if two heartbeats duplicate information about garbage collections.

Specified by:
setCollectorsStats in interface ISrvMonSysGCStats
Parameters:
val - The value to set.

setCollectorsStatsFrom

public final void setCollectorsStatsFrom(XIterator<SrvMonSysGCCollectorStats> val)
Description copied from interface: ISrvMonSysGCStats
Sets the value of 'collectorsStats' using the values from the provided iterator.

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 'collectorsStats' accessor can copy the values without iteration.

Field Description

The list of garbage collections that have occurred.

This list will include the most recent collections that have occurred since the last heartbeat, but may also include historical garbage collections as well. The collection count field of each collection can be used to determine if two heartbeats duplicate information about garbage collections.

NOTE:
Passing a null or empty list has the same affect as calling ISrvMonSysGCStats.setCollectorsStats(SrvMonSysGCCollectorStats[]) with a value of null.

Specified by:
setCollectorsStatsFrom in interface ISrvMonSysGCStats
Parameters:
val - the values to set.

lendCollectorsStatsFrom

public final void lendCollectorsStatsFrom(XIterator<SrvMonSysGCCollectorStats> val)
Description copied from interface: ISrvMonSysGCStats
Sets the value of 'collectorsStats' by lending the values from the provided iterator.

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 will acquire references to each non null value in the provided iterator making it suitable for cases where the values come from another message that may be disposed.

This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'collectorsStats' accessor can copy the values without iteration.

Field Description

The list of garbage collections that have occurred.

This list will include the most recent collections that have occurred since the last heartbeat, but may also include historical garbage collections as well. The collection count field of each collection can be used to determine if two heartbeats duplicate information about garbage collections.

NOTE:
Passing a null or empty list has the same affect as calling ISrvMonSysGCStats.setCollectorsStats(SrvMonSysGCCollectorStats[]) with a value of null.

Specified by:
lendCollectorsStatsFrom in interface ISrvMonSysGCStats
Parameters:
val - the values to set.

lendCollectorsStats

public final void lendCollectorsStats(SrvMonSysGCCollectorStats[] val)
Description copied from interface: ISrvMonSysGCStats
Lends the value of 'collectorsStats'

Field Description

The list of garbage collections that have occurred.

This list will include the most recent collections that have occurred since the last heartbeat, but may also include historical garbage collections as well. The collection count field of each collection can be used to determine if two heartbeats duplicate information about garbage collections.

NOTE:
It is illegal to hold onto an entity 'set' on a message post the disposal of the container message. This is true even if a reference to the entity is explicitly 'acquired' by the application via acquire().

To hold onto the reference of an entity beyond the lifecycle of its container message, an application must own a reference to the entity (via, for example, 'taking' the entity off an inbound message) and then 'lend' the entity to the message for sending. The act of 'lending' an entity to a message implies that the application continues to own the entity even though the message is holding a reference to it for the duration of the send.

Specified by:
lendCollectorsStats in interface ISrvMonSysGCStats
Parameters:
val - the value to 'lend' to lend.

addCollectorsStats

public final void addCollectorsStats(SrvMonSysGCCollectorStats val)
Description copied from interface: ISrvMonSysGCStats
Adds the provided value to the list of 'collectorsStats' values.

This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'collectorsStats' 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.

Field Description

The list of garbage collections that have occurred.

This list will include the most recent collections that have occurred since the last heartbeat, but may also include historical garbage collections as well. The collection count field of each collection can be used to determine if two heartbeats duplicate information about garbage collections.

Specified by:
addCollectorsStats in interface ISrvMonSysGCStats
Parameters:
val - the value to add.

lendCollectorsStats

public final void lendCollectorsStats(SrvMonSysGCCollectorStats val)
Description copied from interface: ISrvMonSysGCStats
Adds the provided value to the list of 'collectorsStats' values and acquires a reference to it.

Lending of an added value is useful in cases where a field is being added from a source message to provide dispose of the source value when the source message is disposed.

This method is zero garbage for Xbuf generated classes, and this method is optimized such that calling this with an iterator from another 'collectorsStats' 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.

Field Description

The list of garbage collections that have occurred.

This list will include the most recent collections that have occurred since the last heartbeat, but may also include historical garbage collections as well. The collection count field of each collection can be used to determine if two heartbeats duplicate information about garbage collections.

Specified by:
lendCollectorsStats in interface ISrvMonSysGCStats
Parameters:
val - the value to add.

getCollectorsStats

public final SrvMonSysGCCollectorStats[] getCollectorsStats()
Description copied from interface: ISrvMonSysGCStats
Gets the value of 'collectorsStats'

If the field is not set this method will return null.

Field Description

The list of garbage collections that have occurred.

This list will include the most recent collections that have occurred since the last heartbeat, but may also include historical garbage collections as well. The collection count field of each collection can be used to determine if two heartbeats duplicate information about garbage collections.

Specified by:
getCollectorsStats in interface ISrvMonSysGCStats
Returns:
The list of garbage collections that have occurred. If the field is not set this method will return null.

getCollectorsStatsEmptyIfNull

public final SrvMonSysGCCollectorStats[] getCollectorsStatsEmptyIfNull()
Description copied from interface: ISrvMonSysGCStats
Gets the value of 'collectorsStats' or an empty array if the value is null or not set.

Field Description

The list of garbage collections that have occurred.

This list will include the most recent collections that have occurred since the last heartbeat, but may also include historical garbage collections as well. The collection count field of each collection can be used to determine if two heartbeats duplicate information about garbage collections.

Specified by:
getCollectorsStatsEmptyIfNull in interface ISrvMonSysGCStats
Returns:
The list of garbage collections that have occurred. or an empty array if null if not set.
See Also:
ISrvMonSysGCStats.getCollectorsStats()

getCollectorsStatsIterator

public final XIterator<SrvMonSysGCCollectorStats> getCollectorsStatsIterator()
Description copied from interface: ISrvMonSysGCStats
Gets the value of 'collectorsStats' as iterator of values.

This 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.

The elements returned by this iterator are owned by and pooled along with this object. The caller. must call acquire() on each returned object that this object intends to keep beyond the lifespan. of this object (unless the element is lent to another object in which that object will acquire it then).

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(XIterator method can perform a direct copy of the underlying values without iteration.

Field Description

The list of garbage collections that have occurred.

This list will include the most recent collections that have occurred since the last heartbeat, but may also include historical garbage collections as well. The collection count field of each collection can be used to determine if two heartbeats duplicate information about garbage collections.

Specified by:
getCollectorsStatsIterator in interface ISrvMonSysGCStats
Returns:
An iterator containing this field values.

takeCollectorsStats

public final SrvMonSysGCCollectorStats[] takeCollectorsStats()
Description copied from interface: ISrvMonSysGCStats
Takes the value of 'collectorsStats'

Field Description

The list of garbage collections that have occurred.

This list will include the most recent collections that have occurred since the last heartbeat, but may also include historical garbage collections as well. The collection count field of each collection can be used to determine if two heartbeats duplicate information about garbage collections.

NOTE:
A nested entity reference returned by ISrvMonSysGCStats.getCollectorsStats() is only valid until the entity is disposed i.e. the act of getting an entity does not transfer ownership of the entity to the application A message disposes of its reference to its contained entities when it is disposed itself.

An AEP engine disposes a message on return from its message handler. Therefore, applications working with AEP engines that wish to hold onto a nested entity reference post return from its containing message's handler must either acquire a reference to the container message or 'take' the nested entity itself from the container message. The act of 'taking' an entity differs from 'getting' an entity in that 'take' does what is necessary to ensure that the entity contents are not cleared and the entity not disposed when the message itself is disposed. For a taken entity to be disposed, the application must explicitly dispose it when done working with it.

Specified by:
takeCollectorsStats in interface ISrvMonSysGCStats
Returns:
a 'taken' reference to the field or null if the field is not set.

clearCollectorsStats

public final void clearCollectorsStats()
Description copied from interface: ISrvMonSysGCStats
Clears the value of 'collectorsStats'

Field Description

The list of garbage collections that have occurred.

This list will include the most recent collections that have occurred since the last heartbeat, but may also include historical garbage collections as well. The collection count field of each collection can be used to determine if two heartbeats duplicate information about garbage collections.

Specified by:
clearCollectorsStats in interface ISrvMonSysGCStats
See Also:
ISrvMonSysGCStats.setCollectorsStats(SrvMonSysGCCollectorStats[])

isDirty

public final boolean isDirty()

createSchema

public static final com.neeve.xbuf.XbufSchema createSchema()

serializeToByteArray

public final byte[] serializeToByteArray()

serializeToByteBuffer

public final ByteBuffer serializeToByteBuffer()

serializeToIOBuffer

public final com.neeve.io.IOBuffer serializeToIOBuffer(boolean useNative)

isBufferBacked

public final boolean isBufferBacked()

getSerializeToNativeLength

public final int getSerializeToNativeLength()

serializeToNative

public final int serializeToNative(long address,
                                   int addressOffset)

deserializeFromIOElasticBuffer

public final SrvMonSysGCStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
                                                             int offset,
                                                             int length,
                                                             com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromIOElasticBuffer

public final SrvMonSysGCStats deserializeFromIOElasticBuffer(com.neeve.io.IOElasticBuffer buffer,
                                                             int offset,
                                                             int length)

deserializeFromByteArray

public final SrvMonSysGCStats deserializeFromByteArray(byte[] array,
                                                       com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromByteArray

public final SrvMonSysGCStats deserializeFromByteArray(byte[] array)

deserializeFromByteBuffer

public final SrvMonSysGCStats deserializeFromByteBuffer(ByteBuffer buffer,
                                                        com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromByteBuffer

public final SrvMonSysGCStats deserializeFromByteBuffer(ByteBuffer buffer)

deserializeFromNative

public final SrvMonSysGCStats deserializeFromNative(long address,
                                                    int offset,
                                                    int length,
                                                    com.neeve.xbuf.XbufDesyncPolicy desyncPolicy)

deserializeFromNative

public final SrvMonSysGCStats deserializeFromNative(long address,
                                                    int offset,
                                                    int length)

sync

public final void sync()

desync

public final int desync(PktBuffer buffer,
                        int pos,
                        boolean frameOnly)
Specified by:
desync in interface com.neeve.xbuf.IXbufDesyncer

init

public final SrvMonSysGCStats init()
Description copied from interface: UtlPool.Item
Initialize an item.

This 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.

Specified by:
init in interface UtlPool.Item<SrvMonSysGCStats>
Returns:
Return 'this' object for method invocation chaining.

setPool

public final SrvMonSysGCStats setPool(UtlPool<SrvMonSysGCStats> pool)
Description copied from interface: UtlPool.Item
Set a pool item's pool.

This 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.

Specified by:
setPool in interface UtlPool.Item<SrvMonSysGCStats>
Returns:
Return 'this' object for method invocation chaining.

getPool

public final UtlPool<SrvMonSysGCStats> getPool()
Description copied from interface: UtlPool.Item
Get a pool item's pool.

This method should return the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool)

Specified by:
getPool in interface UtlPool.Item<SrvMonSysGCStats>
Returns:
the pool set using UtlPool.Item.setPool(com.neeve.util.UtlPool)

isReferenceCounted

public final boolean isReferenceCounted()

acquire

public final SrvMonSysGCStats acquire()

getOwnerCount

public final int getOwnerCount()

dispose

public final void dispose()

clone

public final Object clone()
Creates a clone of this object.

This method differs from the copy() method in that:

Overrides:
clone in class Object

copy

public final SrvMonSysGCStats copy()
Creates a copy of this SrvMonSysGCStats.

The copy copies primitive, enum and embedded entity fields into the returned copy. Each embedded entity field is cloned so that modifications made to the copy's embedded entity fields do not affect this SrvMonSysGCStats's embedded entity fields.

The returned copy will be writeable even if this SrvMonSysGCStats is read only.

Xbuf Pass-through Fields

When backed by a buffer, this operation copies the underlying buffer which means that if the message was deserialized from with unrecognized fields, such fields will be preserved in the copy as well.

Returns:
The copied entity.

copyInto

public final void copyInto(SrvMonSysGCStats copy)
Copies the contents of this SrvMonSysGCStats into the target.

The copy clears the target's contents and copies primitive, enum and embedded entity fields into the provided copy. Each embedded entity field is cloned so that modifications made to the copy's embedded entity fields do not affect this SrvMonSysGCStats's embedded entity fields.

The returned copy will be writeable even if this SrvMonSysGCStats is read only.

Xbuf Pass-through Fields

When backed by a buffer, this operation copies the underlying buffer which means that if the message was deserialized from with unrecognized fields, such fields will be preserved in the copy as well.

Parameters:
copy - The target into which to copy.

isValid

public final boolean isValid()
Description copied from interface: IRogValidatable
Tests if this object has any validation errors.

Specified by:
isValid in interface IRogValidatable

getValidationErrors

public final void getValidationErrors(List<XString> results,
                                      String errorPrefix)
Description copied from interface: IRogValidatable
Collects validation errors into the provided list. It is illegal for the caller to hold onto the List of XStrings beyond the lifespace of this object.

Specified by:
getValidationErrors in interface IRogValidatable
Parameters:
results - 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.

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.