M - Represents the actual type extending this `MetaData` class, facilitating method chaining.public abstract static class AbstractClassGenerator.MetaData<M extends AbstractClassGenerator.MetaData<M>> extends SelfDescribingMarshallable
The `MetaData` class serves as a blueprint for the characteristics of the class to be generated. It provides specifications like the package name, base class name, interfaces to be implemented, and the flag to use an update interceptor.
EMPTYDISCARD| Constructor and Description |
|---|
MetaData() |
| Modifier and Type | Method and Description |
|---|---|
String |
baseClassName()
Retrieves the base name of the class to be generated.
|
M |
baseClassName(String baseClassName)
Sets the base class name for the class to be generated.
|
boolean |
equals(Object o) |
int |
hashCode() |
Set<Class<?>> |
interfaces()
Retrieves the interfaces that the class to be generated should implement.
|
M |
interfaces(Set<Class<?>> interfaces)
Sets the interfaces for the class to be generated.
|
String |
packageName()
Retrieves the package name for the class to be generated.
|
M |
packageName(String packageName)
Sets the package name for the class to be generated.
|
String |
toString() |
boolean |
useUpdateInterceptor()
Checks if the class to be generated should use an update interceptor.
|
M |
useUpdateInterceptor(boolean useUpdateInterceptor)
Specifies whether the class to be generated should use an update interceptor.
|
usesSelfDescribingMessageclone, finalize, getClass, notify, notifyAll, wait, wait, wait$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedFieldpublic String packageName()
public M packageName(String packageName)
packageName - The desired package name.public String baseClassName()
public M baseClassName(String baseClassName)
baseClassName - The desired base class name.IllegalArgumentException - if the provided name isn't a valid class name.public Set<Class<?>> interfaces()
public M interfaces(Set<Class<?>> interfaces)
interfaces - A set of interfaces the generated class should implement.public boolean useUpdateInterceptor()
public M useUpdateInterceptor(boolean useUpdateInterceptor)
useUpdateInterceptor - A flag indicating the use of an update interceptor.Copyright © 2024. All rights reserved.