Class Classname
java.lang.Object
de.espirit.firstspirit.common.text.AbstractTextType<Classname>
de.espirit.firstspirit.common.text.Classname
- All Implemented Interfaces:
 ValueOfContractor,Serializable,CharSequence,Comparable<Classname>
String type replacement for class names.
- Since:
 - 4.2.201
 - See Also:
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.common.text.ValueOfContractor
ValueOfContractor.Invoke - 
Method Summary
Modifier and TypeMethodDescriptionstatic PatternGet the pattern for a classname.static booleanisStrict()Indicates the classname to work in strict mode.static voidsetStrict(boolean strict) Set the classname to be strict, i.e., anInvalidDesignatorExceptionwill be thrown in case of classnames not matching the pattern.static ClassnameCreate an instance from String.Methods inherited from class de.espirit.firstspirit.common.text.AbstractTextType
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, trimMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty 
- 
Method Details
- 
getPattern
Get the pattern for a classname.- Returns:
 - The classname pattern.
 - Since:
 - 4.2.201
 
 - 
valueOf
Create an instance from String.Fulfills the
ValueOfContractormarker.- Parameters:
 string- The string to create from.- Returns:
 - The created instance or 
null, iff the given string is null. - Throws:
 de.espirit.firstspirit.common.text.InvalidDesignatorException- If the given string does not match basic critera for being a language abbreviation.- Since:
 - 4.2.201
 
 - 
setStrict
public static void setStrict(boolean strict) Set the classname to be strict, i.e., anInvalidDesignatorExceptionwill be thrown in case of classnames not matching the pattern.Note: Strict settings only are local to the current thread!
- Parameters:
 strict- The strict mode to set.- Since:
 - 4.2.201
 
 - 
isStrict
public static boolean isStrict()Indicates the classname to work in strict mode. If not set, will default tofalse.- Returns:
 true, if working in strict mode.- Since:
 - 4.2.201
 
 
 -