public class Property extends Object
PropertyDescriptor
(static type description) and
an PropertyAccessor
(dynamic value assignment).
The Property
interface is a realisation of the Value Object design pattern.
Most of the time, properties are used as part of a PropertyContainer
.Constructor and Description |
---|
Property(PropertyDescriptor descriptor,
PropertyAccessor accessor) |
public Property(PropertyDescriptor descriptor, PropertyAccessor accessor)
public static <T> Property create(String name, Class<? extends T> type, T defaultValue, boolean notNull)
public static Property createForMapEntry(Map<String,Object> map, String name, Class<?> type)
public static Property createForMapEntry(Map<String,Object> map, String name, Class<?> type, Object value)
public PropertyDescriptor getDescriptor()
public PropertyContainer getContainer()
public void setContainer(PropertyContainer container)
public Validator getValidator()
public String getValueAsText()
public void setValueFromText(String text) throws ValidationException
ValidationException
public String getName()
public Class<?> getType()
public <T> T getValue()
public void setValue(Object value) throws ValidationException
ValidationException
public void validate(Object value) throws ValidationException
ValidationException
public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.