Package org.restlet.engine.util
Class StringUtils.CharacterEntitySolver
- java.lang.Object
-
- org.restlet.engine.util.StringUtils.CharacterEntitySolver
-
- Enclosing class:
- StringUtils
private static class StringUtils.CharacterEntitySolver extends java.lang.ObjectStores a list en entities and is able to return one given its numeric value or name.
-
-
Constructor Summary
Constructors Constructor Description CharacterEntitySolver()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.Integer value, java.lang.String name)Adds an entity to solve.java.lang.StringgetName(int value)Returns the entity name according to its numeric value.java.lang.IntegergetValue(java.lang.String name)Returns the numeric value of an entity according to its name.
-
-
-
Method Detail
-
add
public void add(java.lang.Integer value, java.lang.String name)Adds an entity to solve.- Parameters:
value- The numeric value of the entity.name- The name of the entity.
-
getName
public java.lang.String getName(int value)
Returns the entity name according to its numeric value.- Parameters:
value- The numeric value of the entity.- Returns:
- The entity name according to its numeric value.
-
getValue
public java.lang.Integer getValue(java.lang.String name)
Returns the numeric value of an entity according to its name.- Parameters:
name- The name of the entity.- Returns:
- The numeric value of an entity according to its name.
-
-