org.apache.struts.config

Class ActionConfigMatcher.Mapping

Enclosing Class:
ActionConfigMatcher
Implemented Interfaces:
Serializable

private class ActionConfigMatcher.Mapping
extends java.lang.Object
implements Serializable

Stores a compiled wildcard pattern and the ActionConfig it came from.

Field Summary

private ActionConfig
config
The original ActionConfig.
private int[]
pattern
The compiled pattern.

Constructor Summary

Mapping(int[] pattern, ActionConfig config)
Contructs a read-only Mapping instance.

Method Summary

ActionConfig
getActionConfig()
Gets the ActionConfig that contains the pattern.
int[]
getPattern()
Gets the compiled wildcard pattern.

Field Details

config

private ActionConfig config
The original ActionConfig.

pattern

private int[] pattern
The compiled pattern.

Constructor Details

Mapping

public Mapping(int[] pattern,
               ActionConfig config)
Contructs a read-only Mapping instance.
Parameters:
pattern - The compiled pattern
config - The original ActionConfig

Method Details

getActionConfig

public ActionConfig getActionConfig()
Gets the ActionConfig that contains the pattern.
Returns:
The associated ActionConfig

getPattern

public int[] getPattern()
Gets the compiled wildcard pattern.
Returns:
The compiled pattern

Copyright B) 2000-2007 - The Apache Software Foundation