|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.metro.info.ContextDescriptor
A descriptor describing the context that a component declares. The context descriptor contains information about context entries accessable via keys (typically mapped to get[Name] operations on a Context inner interface).
Constructor Summary | |
ContextDescriptor(EntryDescriptor[] entries)
Creation of a new context descriptor. |
Method Summary | |
boolean |
equals(Object other)
Test is the supplied object is equal to this object. |
EntryDescriptor |
getEntryDescriptor(String key)
Return the entry with specified key. |
EntryDescriptor[] |
getEntryDescriptors()
Return the entries contained in the context. |
int |
hashCode()
Return the hashcode for the object. |
EntryDescriptor[] |
merge(EntryDescriptor[] entries)
Returns a set of entry descriptors resulting from a merge of the descriptors contained in this descriptor with the supplied descriptors. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextDescriptor(EntryDescriptor[] entries)
entries
- the set of context entriesMethod Detail |
public EntryDescriptor[] getEntryDescriptors()
public EntryDescriptor getEntryDescriptor(String key) throws NullPointerException
key
- the context entry key
NullPointerException
- if the key argument is null.public EntryDescriptor[] merge(EntryDescriptor[] entries) throws IllegalArgumentException
entries
- the entries to merge
IllegalArgumentException
- if a entry conflict occurspublic boolean equals(Object other)
other
- the other object
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |