mx4j.loading

Class MLetParser

public class MLetParser extends 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 StringARCHIVE_ATTR
static StringARG_TAG
static StringCLOSE_BRACKET
static StringCLOSE_COMMENT
static StringCODEBASE_ATTR
static StringCODE_ATTR
static StringMLET_TAG
static StringNAME_ATTR
static StringOBJECT_ATTR
static StringOPEN_BRACKET
static StringOPEN_COMMENT
static StringTYPE_ATTR
static StringVALUE_ATTR
static StringVERSION_ATTR
Constructor Summary
MLetParser()
Creates a new MLetParser
MLetParser(MLet mlet)
Creates a new MLetParser
Method Summary
Listparse(String content)
Parses the given content, that must contains a valid MLet file.

Field Detail

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 Detail

MLetParser

public MLetParser()
Creates a new MLetParser

MLetParser

public MLetParser(MLet mlet)
Creates a new MLetParser

Parameters: mlet The MLet used to resolve classes specified in the ARG tags.

Method Detail

parse

public List parse(String content)
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.