mx4j.loading

Class MLetParser


public class MLetParser
extends java.lang.Object

The parser for MLet files, as specified in the JMX documentation. This parser is case insensitive regards to the MLet tags: MLET is equal to mlet and to MLet. This parser also supports XML-style comments in the file.
Version:
$Revision: 1.6 $

Field Summary

static String
ARCHIVE_ATTR
static String
ARG_TAG
static String
CLOSE_BRACKET
static String
CLOSE_COMMENT
static String
CODEBASE_ATTR
static String
CODE_ATTR
static String
MLET_TAG
static String
NAME_ATTR
static String
OBJECT_ATTR
static String
OPEN_BRACKET
static String
OPEN_COMMENT
static String
TYPE_ATTR
static String
VALUE_ATTR
static String
VERSION_ATTR

Constructor Summary

MLetParser()
Creates a new MLetParser
MLetParser(javax.management.loading.MLet mlet)
Creates a new MLetParser

Method Summary

List
parse(String content)
Parses the given content, that must contains a valid MLet file.

Field Details

ARCHIVE_ATTR

public static final String ARCHIVE_ATTR

ARG_TAG

public static final String ARG_TAG

CLOSE_BRACKET

public static final String CLOSE_BRACKET

CLOSE_COMMENT

public static final String CLOSE_COMMENT

CODEBASE_ATTR

public static final String CODEBASE_ATTR

CODE_ATTR

public static final String CODE_ATTR

MLET_TAG

public static final String MLET_TAG

NAME_ATTR

public static final String NAME_ATTR

OBJECT_ATTR

public static final String OBJECT_ATTR

OPEN_BRACKET

public static final String OPEN_BRACKET

OPEN_COMMENT

public static final String OPEN_COMMENT

TYPE_ATTR

public static final String TYPE_ATTR

VALUE_ATTR

public static final String VALUE_ATTR

VERSION_ATTR

public static final String VERSION_ATTR

Constructor Details

MLetParser

public MLetParser()
Creates a new MLetParser

MLetParser

public MLetParser(javax.management.loading.MLet mlet)
Creates a new MLetParser
Parameters:
mlet - The MLet used to resolve classes specified in the ARG tags.

Method Details

parse

public List parse(String content)
            throws MLetParseException
Parses the given content, that must contains a valid MLet file.
Parameters:
content - The content to parse
Returns:
A list of MLetTags
Throws:
MLetParseException - If the content is not a valid MLet file

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.