IndexedPropertySupportpublic abstract static class Node.IndexedProperty<T,E> extends Node.Property<T>
| Constructor | Description |
|---|---|
IndexedProperty(Class<T> valueType,
Class<E> elementType) |
Constructor.
|
| Modifier and Type | Method | 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.
|
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toStringcanRead, canWrite, getHtmlDisplayName, getPropertyEditor, getValue, getValueType, isDefaultValue, restoreDefaultValue, setValue, supportsDefaultValuepublic 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>Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.