com.ibm.icu.text
Class UnicodeSet.XSymbolTable

java.lang.Object
  extended by com.ibm.icu.text.UnicodeSet.XSymbolTable
All Implemented Interfaces:
SymbolTable
Enclosing class:
UnicodeSet

public abstract static class UnicodeSet.XSymbolTable
extends Object
implements SymbolTable

Internal class for customizing UnicodeSet parsing of properties. TODO: extend to allow customizing of codepoint ranges

Author:
medavis
Status:
Draft ICU3.8.

Field Summary
 
Fields inherited from interface com.ibm.icu.text.SymbolTable
SYMBOL_REF
 
Constructor Summary
UnicodeSet.XSymbolTable()
          Default constructor
 
Method Summary
 boolean applyPropertyAlias(String propertyName, String propertyValue, UnicodeSet result)
          Apply a new property alias.
 char[] lookup(String s)
          Supplies default implementation for SymbolTable (no action).
 UnicodeMatcher lookupMatcher(int i)
          Supplies default implementation for SymbolTable (no action).
 String parseReference(String text, ParsePosition pos, int limit)
          Supplies default implementation for SymbolTable (no action).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnicodeSet.XSymbolTable

public UnicodeSet.XSymbolTable()
Default constructor

Status:
Draft ICU3.8.
Method Detail

lookupMatcher

public UnicodeMatcher lookupMatcher(int i)
Supplies default implementation for SymbolTable (no action).

Specified by:
lookupMatcher in interface SymbolTable
Parameters:
i - a 32-bit code point from 0 to 0x10FFFF inclusive.
Returns:
the UnicodeMatcher object represented by the given character, or null if there is no mapping for ch.
Status:
Draft ICU3.8.

applyPropertyAlias

public boolean applyPropertyAlias(String propertyName,
                                  String propertyValue,
                                  UnicodeSet result)
Apply a new property alias. Is called when parsing [:xxx=yyy:]. Results are to put into result.

Parameters:
propertyName - the xxx in [:xxx=yyy:]
propertyValue - the yyy in [:xxx=yyy:]
result - where the result is placed
Returns:
true if handled
Status:
Draft ICU3.8.

lookup

public char[] lookup(String s)
Supplies default implementation for SymbolTable (no action).

Specified by:
lookup in interface SymbolTable
Parameters:
s - the symbolic name to lookup
Returns:
a char array containing the name's value, or null if there is no mapping for s.
Status:
Draft ICU3.8.

parseReference

public String parseReference(String text,
                             ParsePosition pos,
                             int limit)
Supplies default implementation for SymbolTable (no action).

Specified by:
parseReference in interface SymbolTable
Parameters:
text - the text to parse for the name
pos - on entry, the index of the first character to parse. This is the character following the SYMBOL_REF character. On exit, the index after the last parsed character. If the parse failed, pos is unchanged on exit.
limit - the index after the last character to be parsed.
Returns:
the parsed name, or null if there is no valid symbolic name at the given position.
Status:
Draft ICU3.8.


Copyright (c) 2012 IBM Corporation and others.