|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.metro.info.EntryDescriptor
public final class EntryDescriptor
A descriptor that describes a value that must be placed in components Context. It contains information about;
Field Summary | |
---|---|
static String |
GET
Constant prefix for get operations. |
static boolean |
OPTIONAL
Optional constant. |
static boolean |
REQUIRED
Required constant. |
Constructor Summary | |
---|---|
EntryDescriptor(String key,
String classname)
Construct an non-volotile required EntryDescriptor. |
|
EntryDescriptor(String key,
String classname,
boolean optional)
Construct an non-volotile EntryDescriptor. |
|
EntryDescriptor(String key,
String classname,
boolean optional,
boolean isVolatile)
Construct an EntryDescriptor. |
Method Summary | |
---|---|
int |
compareTo(Object other)
Compare this entry with another entry. |
boolean |
equals(Object other)
Test is the supplied object is equal to this object. |
String |
getClassname()
Return the type of value that is stored in the context entry. |
static String |
getEntryKey(Method method)
Utility function that covers a supplied method to a entry name. |
String |
getKey()
Return the key that Component uses to lookup entry. |
boolean |
getOptional()
Return true if entry is optional, false otherwise. |
boolean |
getVolatile()
Return true if entry is volotile. |
int |
hashCode()
Return the hashcode for the object. |
boolean |
isOptional()
Return true if entry is optional, false otherwise. |
boolean |
isRequired()
Return true if entry is required, false otherwise. |
boolean |
isVolatile()
Return true if entry is volotile. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String GET
public static final boolean OPTIONAL
public static final boolean REQUIRED
Constructor Detail |
---|
public EntryDescriptor(String key, String classname) throws NullPointerException
key
- the context entry keyclassname
- the classname of the context entry
NullPointerException
- if the key or type value are nullpublic EntryDescriptor(String key, String classname, boolean optional) throws NullPointerException
key
- the context entry keyclassname
- the classname of the context entryoptional
- TRUE if this is an optional entry
NullPointerException
- if the key or type value are nullpublic EntryDescriptor(String key, String classname, boolean optional, boolean isVolatile) throws NullPointerException
key
- the context entry keyclassname
- the classname of the context entryoptional
- TRUE if this is an optional entryisVolatile
- TRUE if the entry is consider to be immutable
NullPointerException
- if the key or type value are nullMethod Detail |
---|
public static String getEntryKey(Method method)
method
- the method
Introspector.decapitalize(String)
public String getKey()
public String getClassname()
public boolean getOptional()
public boolean isOptional()
public boolean isRequired()
public boolean isVolatile()
public boolean getVolatile()
public boolean equals(Object other)
equals
in class Object
other
- the object to compare with this instance
public int hashCode()
hashCode
in class Object
public int compareTo(Object other)
compareTo
in interface Comparable
other
- the other object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |