org.apache.felix.mosgi.jmx.agent.mx4j.loading
Class MLetParser

java.lang.Object
  extended by org.apache.felix.mosgi.jmx.agent.mx4j.loading.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.1.1.1 $
Author:
Simone Bordet

Field Summary
static String ARCHIVE_ATTR
           
static String ARG_TAG
           
static String CLOSE_BRACKET
           
static String CLOSE_COMMENT
           
static String CODE_ATTR
           
static String CODEBASE_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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPEN_COMMENT

public static final String OPEN_COMMENT
See Also:
Constant Field Values

CLOSE_COMMENT

public static final String CLOSE_COMMENT
See Also:
Constant Field Values

OPEN_BRACKET

public static final String OPEN_BRACKET
See Also:
Constant Field Values

CLOSE_BRACKET

public static final String CLOSE_BRACKET
See Also:
Constant Field Values

MLET_TAG

public static final String MLET_TAG
See Also:
Constant Field Values

CODE_ATTR

public static final String CODE_ATTR
See Also:
Constant Field Values

OBJECT_ATTR

public static final String OBJECT_ATTR
See Also:
Constant Field Values

ARCHIVE_ATTR

public static final String ARCHIVE_ATTR
See Also:
Constant Field Values

CODEBASE_ATTR

public static final String CODEBASE_ATTR
See Also:
Constant Field Values

NAME_ATTR

public static final String NAME_ATTR
See Also:
Constant Field Values

VERSION_ATTR

public static final String VERSION_ATTR
See Also:
Constant Field Values

ARG_TAG

public static final String ARG_TAG
See Also:
Constant Field Values

TYPE_ATTR

public static final String TYPE_ATTR
See Also:
Constant Field Values

VALUE_ATTR

public static final String VALUE_ATTR
See Also:
Constant Field Values
Constructor Detail

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 Detail

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 © 2006-2011 Apache Software Foundation. All Rights Reserved.