|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.appserv.management.base.MapCapableBase
Base impl class.
Field Summary |
Fields inherited from interface com.sun.appserv.management.base.MapCapable |
MAP_CAPABLE_CLASS_NAME_KEY |
Constructor Summary | |
protected |
MapCapableBase(java.util.Map m,
java.lang.String className)
|
protected |
MapCapableBase(java.lang.String className)
|
Method Summary | |
java.util.Map |
asMap()
To be capable of being serialized and deserialized by generic clients, the following rules must be observed for the resulting Map. |
protected void |
checkInJavaUtil(java.lang.Object o)
|
protected void |
checkLegalObject(java.lang.Object o)
|
protected void |
checkLegalObject(java.lang.Object o,
boolean allowMapCapable)
We restrict the set of legal types to: OpenTypes Collection whose values meet these restrictions arrays whose values meet these restrictions Map whose keys and values meet these restrictions Throwable which are part of java or javax MapCapable whose Map meets these restrictions (assuming allowMapCapable is true) |
protected static void |
checkValidType(java.util.Map m,
java.lang.String requiredType)
|
boolean |
equals(java.lang.Object o)
|
protected boolean |
getboolean(java.lang.String key)
|
protected java.lang.Boolean |
getBoolean(java.lang.String key)
|
protected java.lang.Byte |
getByte(java.lang.String key)
|
protected java.lang.Object |
getField(java.lang.String key)
|
protected java.io.File |
getFile(java.lang.String key)
|
protected java.lang.Integer |
getInteger(java.lang.String key)
|
protected java.util.Map |
getMap(java.lang.String key)
|
java.lang.String |
getMapClassName()
Return the type name which will be paired with MAP_CAPABLE_CLASS_NAME_KEY. |
protected java.lang.Object |
getObject(java.lang.String key)
|
protected java.lang.String |
getString(java.lang.String key)
|
protected java.lang.String[] |
getStringArray(java.lang.String key)
|
protected void |
illegalObject(java.lang.Object o)
|
void |
makeImmutable()
Make this Object immutable. |
protected void |
putAll(java.util.Map m)
Add fields one-by-one so we can check compliance with OpenTypes |
void |
putField(java.lang.String key,
java.lang.Object value)
Add a field to the object. |
protected java.lang.Object |
putFieldHook(java.lang.String key,
java.lang.Object value)
|
java.lang.String |
toString()
|
protected abstract boolean |
validate()
Return true if internal state is valid, false otherwise. |
protected boolean |
validateNullOrOfType(java.lang.String key,
java.lang.Class theClass)
|
protected void |
validateThrow()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected MapCapableBase(java.lang.String className)
protected MapCapableBase(java.util.Map m, java.lang.String className)
Method Detail |
protected static void checkValidType(java.util.Map m, java.lang.String requiredType)
protected abstract boolean validate()
public java.lang.String getMapClassName()
getMapClassName
in interface MapCapable
protected void illegalObject(java.lang.Object o)
protected void checkInJavaUtil(java.lang.Object o)
protected final void checkLegalObject(java.lang.Object o, boolean allowMapCapable)
protected final void checkLegalObject(java.lang.Object o)
protected boolean validateNullOrOfType(java.lang.String key, java.lang.Class theClass)
protected final void validateThrow()
public final java.util.Map asMap()
MapCapable
The Map itself and any items it references, directly or indirectly must be of a class of one of the following:
asMap
in interface MapCapable
public void makeImmutable()
public void putField(java.lang.String key, java.lang.Object value)
protected java.lang.Object putFieldHook(java.lang.String key, java.lang.Object value)
protected void putAll(java.util.Map m)
protected java.lang.Object getField(java.lang.String key)
protected final java.lang.Object getObject(java.lang.String key)
protected final java.lang.String getString(java.lang.String key)
protected final java.lang.String[] getStringArray(java.lang.String key)
protected final java.lang.Boolean getBoolean(java.lang.String key)
protected final java.lang.Byte getByte(java.lang.String key)
protected final boolean getboolean(java.lang.String key)
protected final java.lang.Integer getInteger(java.lang.String key)
protected final java.util.Map getMap(java.lang.String key)
protected final java.io.File getFile(java.lang.String key)
public boolean equals(java.lang.Object o)
public java.lang.String toString()
|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.