|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.pfl.dynamic.codegen.impl.Attribute<T>
public class Attribute<T>
Class used to define dynamic attributes on AttributedObject instances.
Note that T cannot be a generic type, due to problems with
Class
Constructor Summary
Attribute(Class<T> cls,
String name,
org.glassfish.pfl.basic.func.NullaryFunction<T> initializer)
Attribute(Class<T> cls,
String name,
T defaultValue)
Method Summary
Tget(AttributedObject node)
static Attribute<?>get(int index)
static Set<Attribute<?>>getAttributes(AttributedObject node)
intindex()
booleanisSet(AttributedObject node)
Stringname()
static intnumberOfAttributes()
voidset(AttributedObject node,
T arg)
StringtoString()
Class<?>type()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail
Attribute
public Attribute(Class<T> cls,
String name,
T defaultValue)
Attribute
public Attribute(Class<T> cls,
String name,
org.glassfish.pfl.basic.func.NullaryFunction<T> initializer)
Method Detail
numberOfAttributes
public static int numberOfAttributes()
get
public static Attribute<?> get(int index)
getAttributes
public static Set<Attribute<?>> getAttributes(AttributedObject node)
toString
public String toString()
get
public T get(AttributedObject node)
set
public void set(AttributedObject node,
T arg)
isSet
public boolean isSet(AttributedObject node)
name
public String name()
index
public int index()
type
public Class<?> type()
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2013 Oracle. All Rights Reserved.