public final class Designator extends AbstractTextType<Designator>
ValueOfContractor.Invoke
_text
Modifier and Type | Method and Description |
---|---|
static Pattern |
getPattern()
Get the pattern for a designator.
|
static boolean |
isStrict()
Indicates the designator to work in strict mode.
|
static void |
setStrict(boolean strict)
Set the designator to be strict, i.e., an
InvalidDesignatorException
will be thrown in case of designators not matching the pattern. |
static Designator |
valueOf(String string)
Create an instance from String.
|
charAt, codePointAt, codePointBefore, codePointCount, compareTo, compareTo, compareToIgnoreCase, concat, contains, contentEquals, contentEquals, correlatesTo, endsWith, equals, equalsIgnoreCase, getBytes, getBytes, getBytes, getChars, hashCode, indexOf, indexOf, indexOf, indexOf, intern, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, length, matches, offsetByCodePoints, regionMatches, regionMatches, replace, replace, replaceAll, replaceFirst, split, split, startsWith, startsWith, subSequence, substring, substring, toCharArray, toLowerCase, toLowerCase, toString, toUpperCase, toUpperCase, trim
public static Pattern getPattern()
public static Designator valueOf(String string)
Fulfills the ValueOfContractor
marker.
string
- The string to create from.null
, iff the given
string is null.InvalidDesignatorException
- If the given string does not match basic
critera for being a language abbreviation.public static void setStrict(boolean strict)
InvalidDesignatorException
will be thrown in case of designators not matching the pattern.
Note: Strict settings only are local to the current thread!
strict
- The strict mode to set.public static boolean isStrict()
false
.true
, if working in strict mode.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500