public final class GenericExportedValue<T> extends Object implements ExportedValue
Constructor and Description |
---|
GenericExportedValue(String name,
String description,
Supplier<CompositeData> getter,
Consumer<CompositeData> setter,
CompositeType openType) |
GenericExportedValue(String name,
String description,
Supplier<T> getter,
Consumer<T> setter,
Class<T> clasz) |
Modifier and Type | Method and Description |
---|---|
Object |
get() |
String |
getDescription() |
String |
getName() |
OpenType |
getValueOpenType() |
Class |
getValueType() |
boolean |
isWriteable() |
void |
set(Object value) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toAttributeInfo
public GenericExportedValue(@Nonnull String name, @Nonnull String description, @Nonnull Supplier<T> getter, @Nullable Consumer<T> setter, Class<T> clasz) throws NotSerializableException
NotSerializableException
public GenericExportedValue(@Nonnull String name, @Nonnull String description, @Nonnull Supplier<CompositeData> getter, @Nullable Consumer<CompositeData> setter, CompositeType openType)
public String getName()
getName
in interface ExportedValue
public String getDescription()
getDescription
in interface ExportedValue
public Object get() throws OpenDataException
get
in interface ExportedValue
OpenDataException
public void set(Object value) throws InvalidObjectException
set
in interface ExportedValue
InvalidObjectException
public boolean isWriteable()
isWriteable
in interface ExportedValue
public Class getValueType()
getValueType
in interface ExportedValue
public OpenType getValueOpenType()
getValueOpenType
in interface ExportedValue
Copyright © 2018 SPF4J. All rights reserved.