public abstract class PrimitiveConfig<C extends PrimitiveConfig<C>> extends Object implements TypedConfig<PrimitiveType>, NamedConfig<C>
| Constructor and Description |
|---|
PrimitiveConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the configuration name.
|
NamespaceConfig |
getNamespaceConfig()
Returns the serializer configuration.
|
PrimitiveProtocolConfig |
getProtocolConfig()
Returns the protocol configuration.
|
boolean |
isReadOnly()
Returns whether the primitive is read-only.
|
C |
setName(String name)
Sets the configuration name.
|
C |
setNamespaceConfig(NamespaceConfig namespaceConfig)
Sets the serializer configuration.
|
C |
setProtocolConfig(PrimitiveProtocolConfig protocolConfig)
Sets the protocol configuration.
|
C |
setReadOnly()
Sets the primitive to read-only.
|
C |
setReadOnly(boolean readOnly)
Sets whether the primitive is read-only.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic String getName()
NamedConfiggetName in interface NamedConfig<C extends PrimitiveConfig<C>>public C setName(String name)
NamedConfigsetName in interface NamedConfig<C extends PrimitiveConfig<C>>name - the configuration namepublic NamespaceConfig getNamespaceConfig()
public C setNamespaceConfig(NamespaceConfig namespaceConfig)
namespaceConfig - the serializer configurationpublic PrimitiveProtocolConfig getProtocolConfig()
public C setProtocolConfig(PrimitiveProtocolConfig protocolConfig)
protocolConfig - the protocol configurationpublic C setReadOnly()
public C setReadOnly(boolean readOnly)
readOnly - whether the primitive is read-onlypublic boolean isReadOnly()
Copyright © 2013–2018. All rights reserved.