IndexedPropertySupportpublic abstract static class Node.IndexedProperty<T,E> extends Node.Property<T>
| Constructor | Description |
|---|---|
IndexedProperty(java.lang.Class<T> valueType,
java.lang.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(java.lang.Object property) |
|
java.lang.Class<E> |
getElementType() |
Get the element type of the property (not the type of the whole property).
|
java.beans.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 java.lang.Class<E> getElementType()
public abstract E getIndexedValue(int index) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
index - the indexjava.lang.IllegalAccessException - cannot access the called methodjava.lang.IllegalArgumentException - wrong argumentjava.lang.reflect.InvocationTargetException - an exception during invocationpublic abstract boolean canIndexedWrite()
true if sopublic abstract void setIndexedValue(int indx,
E val)
throws java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException
indx - the indexval - the value to setjava.lang.IllegalAccessException - cannot access the called methodjava.lang.IllegalArgumentException - wrong argumentjava.lang.reflect.InvocationTargetException - an exception during invocationpublic java.beans.PropertyEditor getIndexedPropertyEditor()
public boolean equals(java.lang.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.