Class MLetContent
- 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
Constructors
Constructor | Description |
---|---|
MLetContent(URL url,
Map<String,String> attributes,
List<String> types,
List<String> values) | Creates an |
Methods
Modifier and Type | Method | Description |
---|---|---|
Map<String,String> | getAttributes() | Gets the attributes of the |
String | getCode() | Gets the value of the |
URL | getCodeBase() | Gets the code base URL. |
URL | getDocumentBase() | Gets the MLet text file's base URL. |
String | getJarFiles() | Gets the list of |
String | getName() | Gets the value of the |
List<String> | getParameterTypes() | Gets the list of values of the |
List<String> | getParameterValues() | Gets the list of values of the |
String | getSerializedObject() | Gets the value of the |
String | getVersion() | Gets the value of the |
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructors
MLetContent
public MLetContent(URL url, Map<String,String> attributes, List<String> types, List<String> values)
Creates an MLet
instance initialized with attributes read from an MLET
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.
Methods
getAttributes
public Map<String,String> getAttributes()
Gets the attributes of the MLET
tag. The keys in the returned map are the attribute names in lowercase, for example codebase
. The values are the associated attribute values.
- Returns:
- A map of the attributes of the
MLET
tag 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 .jar
files specified by the ARCHIVE
attribute of the MLET
tag.
- Returns:
- A comma-separated list of
.jar
file names.
getCode
public String getCode()
Gets the value of the CODE
attribute of the MLET
tag.
- Returns:
- The value of the
CODE
attribute of theMLET
tag.
getSerializedObject
public String getSerializedObject()
Gets the value of the OBJECT
attribute of the MLET
tag.
- Returns:
- The value of the
OBJECT
attribute of theMLET
tag.
getName
public String getName()
Gets the value of the NAME
attribute of the MLET
tag.
- Returns:
- The value of the
NAME
attribute of theMLET
tag.
getVersion
public String getVersion()
Gets the value of the VERSION
attribute of the MLET
tag.
- Returns:
- The value of the
VERSION
attribute of theMLET
tag.
getParameterTypes
public List<String> getParameterTypes()
Gets the list of values of the TYPE
attribute in each nested <PARAM> tag within the MLET
tag.
- Returns:
- the list of types.
getParameterValues
public List<String> getParameterValues()
Gets the list of values of the VALUE
attribute in each nested <PARAM> tag within the MLET
tag.
- Returns:
- the list of values.
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.management/javax/management/loading/MLetContent.html