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 theMLET
tag.String
getCode()
Gets the value of theCODE
attribute of theMLET
tag.URL
getCodeBase()
Gets the code base URL.URL
getDocumentBase()
Gets the MLet text file's base URL.String
getJarFiles()
Gets the list of.jar
files specified by theARCHIVE
attribute of theMLET
tag.String
getName()
Gets the value of theNAME
attribute of theMLET
tag.List<String>
getParameterTypes()
Gets the list of values of theTYPE
attribute in each nested <PARAM> tag within theMLET
tag.List<String>
getParameterValues()
Gets the list of values of theVALUE
attribute in each nested <PARAM> tag within theMLET
tag.String
getSerializedObject()
Gets the value of theOBJECT
attribute of theMLET
tag.String
getVersion()
Gets the value of theVERSION
attribute of theMLET
tag.
-
Constructor Details
-
MLetContent
public MLetContent(URL url, Map<String,String> attributes, List<String> types, List<String> values)Creates anMLet
instance initialized with attributes read from anMLET
tag in an MLet text file.- Parameters:
url
- The URL of the MLet text file containing theMLET
tag.attributes
- A map of the attributes of theMLET
tag. 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 theMLET
tag. 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
MLET
tag 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.jar
files specified by theARCHIVE
attribute of theMLET
tag.- Returns:
- A comma-separated list of
.jar
file names.
-
getCode
Gets the value of theCODE
attribute of theMLET
tag.- Returns:
- The value of the
CODE
attribute of theMLET
tag.
-
getSerializedObject
Gets the value of theOBJECT
attribute of theMLET
tag.- Returns:
- The value of the
OBJECT
attribute of theMLET
tag.
-
getName
Gets the value of theNAME
attribute of theMLET
tag.- Returns:
- The value of the
NAME
attribute of theMLET
tag.
-
getVersion
Gets the value of theVERSION
attribute of theMLET
tag.- Returns:
- The value of the
VERSION
attribute of theMLET
tag.
-
getParameterTypes
Gets the list of values of theTYPE
attribute in each nested <PARAM> tag within theMLET
tag.- Returns:
- the list of types.
-
getParameterValues
Gets the list of values of theVALUE
attribute in each nested <PARAM> tag within theMLET
tag.- Returns:
- the list of values.
-