com.endeca.portal.util
Class NCNameConverter

java.lang.Object
  extended by com.endeca.portal.util.NCNameConverter

public class NCNameConverter
extends java.lang.Object

Code to change a string to an NCName. This has bit of code has been brought over from Provisioning service.


Constructor Summary
NCNameConverter()
           
 
Method Summary
static java.lang.String getNCNameCompliantName(java.lang.String name)
          Endeca Server can only handle NCName compatible Names defined by the regular expression "[\i-[:]][\c-[:]]*", where the multi-character escapes are defined in the XML Schema Definition http://www.w3.org/TR/xmlschema-2/#dt-ccesN This method replaces every non-matching character with "_", and prefixes the name with "A" if the leading character is disallowed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NCNameConverter

public NCNameConverter()
Method Detail

getNCNameCompliantName

public static java.lang.String getNCNameCompliantName(java.lang.String name)
Endeca Server can only handle NCName compatible Names defined by the regular expression "[\i-[:]][\c-[:]]*", where the multi-character escapes are defined in the XML Schema Definition http://www.w3.org/TR/xmlschema-2/#dt-ccesN This method replaces every non-matching character with "_", and prefixes the name with "A" if the leading character is disallowed.

Parameters:
key -
Returns:
a NCName compatible String