Package de.aristaflow.adept2.util.xml
Class NameRules
java.lang.Object
de.aristaflow.adept2.util.xml.NameRules
This class provides rules for XML names which allows to check for whether a
CharSequence is a valid XML name.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
NameRules
public NameRules()
-
-
Method Details
-
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
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.
-