Package de.aristaflow.adept2.util.xml
Class NameRules
- java.lang.Object
-
- de.aristaflow.adept2.util.xml.NameRules
-
public class NameRules extends Object
This class provides rules for XML names which allows to check for whether aCharSequenceis a valid XML name.- See Also:
- XML Schema ID type
-
-
Constructor Summary
Constructors Constructor Description NameRules()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisBaseChar(int c)Gets whether the designated character/codepoint is a BaseChar.static booleanisCombiningChar(int c)Gets whether the designated character/codepoint is a CombiningChar.static booleanisDigit(int c)Gets whether the designated character/codepoint is a Digit.static booleanisExtender(int c)Gets whether the designated character/codepoint is an Extender.static booleanisIdeographic(int c)Gets whether the designated character/codepoint is an Ideographic.static booleanisLetter(int c)Gets whether the designated character/codepoint is a Letter.static booleanisNCName(CharSequence cs)Gets whether the designated character sequence is an NCName.static booleanisNCNameChar(int c)Gets whether the designated character/codepoint is an NCNameChar.
-
-
-
Method Detail
-
isBaseChar
public static boolean isBaseChar(int c)
Gets whether the designated character/codepoint is a BaseChar.- Parameters:
c- The character/codepoint which to test forBaseChar.- Returns:
- Whether the designated character/codepoint is a BaseChar.
-
isIdeographic
public static boolean isIdeographic(int c)
Gets whether the designated character/codepoint is an Ideographic.- Parameters:
c- The character/codepoint which to test forIdeographic.- Returns:
- Whether the designated character/codepoint is an Ideographic.
-
isDigit
public static boolean isDigit(int c)
Gets whether the designated character/codepoint is a Digit.- Parameters:
c- The character/codepoint which to test forDigit.- Returns:
- Whether the designated character/codepoint is a Digit.
-
isCombiningChar
public static boolean isCombiningChar(int c)
Gets whether the designated character/codepoint is a CombiningChar.- Parameters:
c- The character/codepoint which to test forCombiningChar.- Returns:
- Whether the designated character/codepoint is a CombiningChar.
-
isExtender
public static boolean isExtender(int c)
Gets whether the designated character/codepoint is an Extender.- Parameters:
c- The character/codepoint which to test forExtender.- Returns:
- Whether the designated character/codepoint is an Extender.
-
isLetter
public static boolean isLetter(int c)
Gets whether the designated character/codepoint is a Letter.- Parameters:
c- The character/codepoint which to test forLetter.- Returns:
- Whether the designated character/codepoint is a Letter.
-
isNCNameChar
public static boolean isNCNameChar(int c)
Gets whether the designated character/codepoint is an NCNameChar.- Parameters:
c- The character/codepoint which to test forNCNameChar.- Returns:
- Whether the designated character/codepoint is an NCNameChar.
-
isNCName
public static boolean isNCName(CharSequence cs)
Gets whether the designated character sequence is an NCName.- Parameters:
cs- The character sequence which to test forNCName.- Returns:
- Whether the designated character sequence is an NCName.
-
-