> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IPHXStringReplacer

## Interface: IPHXStringReplacer

**Package:** `com.phoenix_int.aserver.util`

***

**Declaration**

```java theme={null}
public interface IPHXStringReplacer
```

This is the interface for replacing strings, used by the PHXStringReplacer class.

## Method Summary

| Modifier and Type | Method and Description |
| - | - |
| `java.lang.String` | `getReplacement(java.lang.String s)` replaces the specified string with some other value. |

## Method Detail

### getReplacement

```java theme={null}
java.lang.String getReplacement(java.lang.String s)
                         throws PHXNoSuchReplacementException
```

replaces the specified string with some other value. If the string does not match a known entity, just return it.

**Parameters:**

* `s` - the String to replace

**Returns:**

* the replacement

**Throws:**

* [`PHXNoSuchReplacementException`](https://developer.synopsys.com/docs/modelcenter/modelcenter-remote-execution-java-api/2025-r2/com/phoenix_int/aserver/util/PHXNoSuchReplacementException) - thrown if no replacement exists
