java.lang.Object
javax.management.loading.MLetContent
public class MLetContent extends Object
This class represents the contents of the
MLET tag.
It can be consulted by a subclass of MLet that overrides
the MLet.check method.- Since:
- 1.6
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Map<String,String>getAttributes()Gets the attributes of theMLETtag.StringgetCode()Gets the value of theCODEattribute of theMLETtag.URLgetCodeBase()Gets the code base URL.URLgetDocumentBase()Gets the MLet text file's base URL.StringgetJarFiles()Gets the list of.jarfiles specified by theARCHIVEattribute of theMLETtag.StringgetName()Gets the value of theNAMEattribute of theMLETtag.List<String>getParameterTypes()Gets the list of values of theTYPEattribute in each nested <PARAM> tag within theMLETtag.List<String>getParameterValues()Gets the list of values of theVALUEattribute in each nested <PARAM> tag within theMLETtag.StringgetSerializedObject()Gets the value of theOBJECTattribute of theMLETtag.StringgetVersion()Gets the value of theVERSIONattribute of theMLETtag.
-
Constructor Details
-
MLetContent
public MLetContent(URL url, Map<String,String> attributes, List<String> types, List<String> values)Creates anMLetinstance initialized with attributes read from anMLETtag in an MLet text file.- Parameters:
url- The URL of the MLet text file containing theMLETtag.attributes- A map of the attributes of theMLETtag. The keys in this map are the attribute names in lowercase, for examplecodebase. The values are the associated attribute values.types- A list of the TYPE attributes that appeared in nested <PARAM> tags.values- A list of the VALUE attributes that appeared in nested <PARAM> tags.
-
-
Method Details
-
getAttributes
Gets the attributes of theMLETtag. The keys in the returned map are the attribute names in lowercase, for examplecodebase. The values are the associated attribute values.- Returns:
- A map of the attributes of the
MLETtag and their values.
-
getDocumentBase
Gets the MLet text file's base URL.- Returns:
- The MLet text file's base URL.
-
getCodeBase
Gets the code base URL.- Returns:
- The code base URL.
-
getJarFiles
Gets the list of.jarfiles specified by theARCHIVEattribute of theMLETtag.- Returns:
- A comma-separated list of
.jarfile names.
-
getCode
Gets the value of theCODEattribute of theMLETtag.- Returns:
- The value of the
CODEattribute of theMLETtag.
-
getSerializedObject
Gets the value of theOBJECTattribute of theMLETtag.- Returns:
- The value of the
OBJECTattribute of theMLETtag.
-
getName
Gets the value of theNAMEattribute of theMLETtag.- Returns:
- The value of the
NAMEattribute of theMLETtag.
-
getVersion
Gets the value of theVERSIONattribute of theMLETtag.- Returns:
- The value of the
VERSIONattribute of theMLETtag.
-
getParameterTypes
Gets the list of values of theTYPEattribute in each nested <PARAM> tag within theMLETtag.- Returns:
- the list of types.
-
getParameterValues
Gets the list of values of theVALUEattribute in each nested <PARAM> tag within theMLETtag.- Returns:
- the list of values.
-