TokenReplacer (Hyperic HQ Plugin API)
Keywords: org.hyperic.util.filter.TokenReplacer class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.util.filter
Class TokenReplacer

    java.lang.Object
      org.hyperic.util.filter.TokenReplacer

    public class TokenReplacer

extends java.lang.Object

Property replacer for Strings. The default begin and end tokens are ${ and }. These are configurable. By default the available filters include all system properties.

Constructor Summary
`TokenReplacer()`
`TokenReplacer(java.util.Map filters)`

Method Summary
`void` | `addFilter(java.lang.String name, java.lang.String value)`
`void` | `addFilters(java.util.Map filters)`
`void` | `clear()`
`java.lang.String` | `getFilter(java.lang.String name)`
`java.util.Map` | `getFilters()`
`static java.lang.String` | `replace(java.lang.String input, java.util.Map filters)`
`java.util.Properties` | `replaceProperties(java.util.Properties source)`
`java.util.Properties` | `replaceProperties(java.util.Properties source, java.util.Map filters)`
`java.lang.String` | `replaceTokens(java.lang.String input)`
`void` | `setBeginToken(java.lang.String token)`
`void` | `setEndToken(java.lang.String token)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TokenReplacer

    public TokenReplacer()

### TokenReplacer

    public TokenReplacer(java.util.Map filters)

Method Detail

### clear

    public void clear()

### setBeginToken

    public void setBeginToken(java.lang.String token)

### setEndToken

    public void setEndToken(java.lang.String token)

### addFilter

    public void addFilter(java.lang.String name,
                          java.lang.String value)

### addFilters

    public void addFilters(java.util.Map filters)

### getFilters

    public java.util.Map getFilters()

### getFilter

    public java.lang.String getFilter(java.lang.String name)

### replaceTokens

    public java.lang.String replaceTokens(java.lang.String input)

### replaceProperties

    public java.util.Properties replaceProperties(java.util.Properties source)

### replaceProperties

    public java.util.Properties replaceProperties(java.util.Properties source,
                                                  java.util.Map filters)

### replace

    public static java.lang.String replace(java.lang.String input,
                                           java.util.Map filters)

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.