com.opensymphony.xwork2.config.impl
Class AbstractMatcher.Mapping<E>

java.lang.Object
  extended by com.opensymphony.xwork2.config.impl.AbstractMatcher.Mapping<E>
All Implemented Interfaces:
Serializable
Enclosing class:
AbstractMatcher<E>

private static class AbstractMatcher.Mapping<E>
extends Object
implements Serializable

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


Field Summary
private  E config
           The original object.
private  String original
           The original pattern.
private  Object pattern
           The compiled pattern.
 
Constructor Summary
AbstractMatcher.Mapping(String original, Object pattern, E config)
           Contructs a read-only Mapping instance.
 
Method Summary
 String getOriginalPattern()
           Gets the original wildcard pattern.
 Object getPattern()
           Gets the compiled wildcard pattern.
 E getTarget()
           Gets the object that contains the pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

original

private String original

The original pattern.


pattern

private Object pattern

The compiled pattern.


config

private E config

The original object.

Constructor Detail

AbstractMatcher.Mapping

public AbstractMatcher.Mapping(String original,
                               Object pattern,
                               E config)

Contructs a read-only Mapping instance.

Parameters:
original - The original pattern
pattern - The compiled pattern
config - The original object
Method Detail

getPattern

public Object getPattern()

Gets the compiled wildcard pattern.

Returns:
The compiled pattern

getTarget

public E getTarget()

Gets the object that contains the pattern.

Returns:
The associated object

getOriginalPattern

public String getOriginalPattern()

Gets the original wildcard pattern.

Returns:
The original pattern


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.