public abstract static class Node.IndexedProperty<T,E> extends Node.Property<T>
Constructor and Description |
---|
IndexedProperty(Class<T> valueType,
Class<E> elementType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canIndexedRead()
Test whether the property is readable by index.
|
abstract boolean |
canIndexedWrite()
Test whether the property is writable by index.
|
boolean |
equals(Object property) |
Class<E> |
getElementType()
Get the element type of the property (not the type of the whole property).
|
PropertyEditor |
getIndexedPropertyEditor()
Get a property editor for individual elements in this property.
|
abstract E |
getIndexedValue(int index)
Get the value of the property at an index.
|
int |
hashCode() |
abstract void |
setIndexedValue(int indx,
E val)
Set the value of the property at an index.
|
canRead, canWrite, getHtmlDisplayName, getPropertyEditor, getValue, getValueType, isDefaultValue, restoreDefaultValue, setValue, supportsDefaultValue
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toString
public abstract boolean canIndexedRead()
true
if sopublic Class<E> getElementType()
public abstract E getIndexedValue(int index) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
index
- the indexIllegalAccessException
- cannot access the called methodIllegalArgumentException
- wrong argumentInvocationTargetException
- an exception during invocationpublic abstract boolean canIndexedWrite()
true
if sopublic abstract void setIndexedValue(int indx, E val) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
indx
- the indexval
- the value to setIllegalAccessException
- cannot access the called methodIllegalArgumentException
- wrong argumentInvocationTargetException
- an exception during invocationpublic PropertyEditor getIndexedPropertyEditor()
public boolean equals(Object property)
equals
in class Node.Property<T>
public int hashCode()
hashCode
in class Node.Property<T>