- java.lang.Object
-
- javax.management.loading.MLetContent
-
public class MLetContent extends Object
This class represents the contents of theMLETtag. It can be consulted by a subclass ofMLetthat overrides theMLet.checkmethod.- Since:
- 1.6
-
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
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 Detail
-
getAttributes
public Map<String,String> 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
public URL getDocumentBase()
Gets the MLet text file's base URL.- Returns:
- The MLet text file's base URL.
-
getCodeBase
public URL getCodeBase()
Gets the code base URL.- Returns:
- The code base URL.
-
getJarFiles
public String getJarFiles()
Gets the list of.jarfiles specified by theARCHIVEattribute of theMLETtag.- Returns:
- A comma-separated list of
.jarfile names.
-
getCode
public String getCode()
Gets the value of theCODEattribute of theMLETtag.- Returns:
- The value of the
CODEattribute of theMLETtag.
-
getSerializedObject
public String getSerializedObject()
Gets the value of theOBJECTattribute of theMLETtag.- Returns:
- The value of the
OBJECTattribute of theMLETtag.
-
getName
public String getName()
Gets the value of theNAMEattribute of theMLETtag.- Returns:
- The value of the
NAMEattribute of theMLETtag.
-
getVersion
public String getVersion()
Gets the value of theVERSIONattribute of theMLETtag.- Returns:
- The value of the
VERSIONattribute of theMLETtag.
-
getParameterTypes
public List<String> getParameterTypes()
Gets the list of values of theTYPEattribute in each nested <PARAM> tag within theMLETtag.- Returns:
- the list of types.
-
-