Modifier and Type | Class and Description |
---|---|
class |
PropertyIOException
The exception thrown when ever something with PropertyIO is involved.
|
Modifier and Type | Method and Description |
---|---|
void |
PropertyChangeListener.changeFailed(Property<?> property,
String currentValue,
String failedValue,
PropertyException exception)
This method is called if setting an Property failed with a PropertyException.
The method is only called by the Property.setTypedValue() method. |
Modifier and Type | Method and Description |
---|---|
void |
PropertyChangeListener.changeSuccessfull(Property<?> property,
String beforeValue,
String afterValue)
The method that is called after succesfully changing the value of the
Property . |
String |
PropertyType.getDefaultValueAsString() |
void |
PropertyCollection.postValidation()
After the PropertyCollection has validation the PropertyIO and all the Properties, it calls this method.
|
void |
PropertyType.setTypedValue(String propertyName,
T t)
Sets/writes the types value to the PropertyIO.
|
void |
Property.setTypedValue(T value)
Sets the value (T) for the Property via the PropertyIO.
|
void |
Property.setValue(String value)
Sets the value (String) for the Property via the PropertyIO.
|
String |
PropertyType.toString(String propertyName,
T t)
Converts a typed to the string representation.
|
void |
PropertyCollection.validate()
Validates all the
Property 's in the collection an throws an
PropertyException for the first that failsvalidation. |
void |
Property.validate()
Validates the value through the PropertyType validation.
|
T |
PropertyType.validate(String propertyName,
String value)
Validates the constraints and value of the PropertyType
and returns the value as the defined type.
|
void |
PropertyType.validateConstraints(String propertyName)
A PropertyType can have some constraints here is where they are
validated.
|
protected void |
PropertyType.validateNullType(String propertyName,
Object value)
Helper method, to validate if a type T is null, and throwing a exception
if that is the case.
|
abstract T |
PropertyType.validateValue(String propertyName,
String value)
Converts the string representation of to a typed value.
|
Modifier and Type | Method and Description |
---|---|
void |
PropertyListCollection.postValidation() |
void |
PropertyFieldCollection.postValidation() |
void |
PropertyListCollection.validate() |
void |
PropertyFieldCollection.validate() |
void |
ActivationValidator.validate(boolean given,
Property<?>... thanMustBeDefined)
Validates a when a certain condition is
true , all provided properties must be defined. |
void |
ActivationValidator.validate(Property<?> givenPropertyDefined,
Object shouldEquals,
Property<?>... thanMustBeDefined)
Validates that a Property typed value is equal a value; if so ; than all the properties in the array must be weel defined.
|
void |
ActivationValidator.validate(Property<?> givenPropertyDefined,
Property<?>... thanMustBeDefined)
Validates that if the Property givenPropertyDefined is not
null AND is valid, all the other Properties thanMustBeDefined must be not null and well defined. |
void |
ActivationValidator.validateMustBeDefined(Property<?>... thanMustBeDefined)
Validates an array of Property's that they all are weel defined.
|
Modifier and Type | Method and Description |
---|---|
void |
UpdateLastChangedPropertyChangeListener.changeFailed(Property<?> property,
String currentValue,
String failedValue,
PropertyException exception) |
void |
OnChangePropertyChangeListener.changeFailed(Property<?> property,
String currentValue,
String failedValue,
PropertyException exception) |
void |
LoggingPropertyChangeListener.changeFailed(Property<?> property,
String currentValue,
String failedValue,
PropertyException exception) |
Modifier and Type | Method and Description |
---|---|
void |
OnChangePropertyChangeListener.changeSuccessfull(Property<?> property,
String beforeValue,
String afterValue) |
Modifier and Type | Method and Description |
---|---|
T |
TypeFromGeneric.fromType(String propertyName,
K from)
The method which converts K to the type T.
|
void |
TypeFromGeneric.validateConstraints(String propertyName)
Validates the constraints for the type.
|
void |
DerivedPropertyType.validateConstraints(String propertyName)
Validates the DerivedPropertyType.
|
void |
DerivedFromTypePropertyType.validateConstraints(String propertyName)
Validates the DerivedFromTypePropertyType.
|
abstract T |
DerivedPropertyType.validateDerivedValue(String propertyName)
Should convert the dependent Properties to the type T.
|
T |
DerivedFromTypePropertyType.validateDerivedValue(String propertyName)
Use the TypeFromGeneric#fromType method to convert the value to type T.
|
T |
DerivedPropertyType.validateValue(String propertyName,
String value)
This is the normal PropertyType validation method, which is overridden an calls validateDerivedValue(name), from where the implementation must
take the provided properties and convert them into the appropiate type T.
|
Modifier and Type | Method and Description |
---|---|
List<T> |
TypeListFromTextFile.fromType(String propertyName,
File fromFile) |
Hashtable<String,List<String>> |
KeyValuesFromTextFile.fromType(String propertyName,
File from) |
Hashtable<String,List<List<String>>> |
KeyMultiLineValuesFromTextFile.fromType(String propertyName,
File from) |
void |
TypeListFromTextFile.validateConstraints(String propertyName)
Will validate that the
PropertyType isnt
null .
Encoding isnt null or emptr and is valid.
The IgnoreLineRegex is valid if it is not null .
|
void |
KeyValuesFromTextFile.validateConstraints(String propertyName) |
void |
KeyMultiLineValuesFromTextFile.validateConstraints(String propertyName) |
Modifier and Type | Method and Description |
---|---|
protected void |
PasswordPropertyType.evaluatePassword(String propertyName,
String value)
Evaluates a new password.
|
String |
PasswordPropertyType.getDecryptedValue(String value) |
String |
PasswordPropertyType.getEncryptedValue(String value) |
boolean |
PasswordPropertyType.isEncrypted(String value) |
boolean |
PasswordPropertyType.isSameKey(String password,
String inputValue) |
protected double |
ByteSizePropertyType.parseNumberPart(String propertyName,
String value,
String numberPart) |
protected ByteSizeUnit |
ByteSizePropertyType.parseUnitPart(String propertyName,
String value,
String unitPart) |
void |
StringPropertyType.setPatternString(String patternString)
Sets a pattern string which the string shall validates to.
|
String |
FilenameFilterPropertyType.toString(String propertyName,
AbstractStringFilenameFilter t) |
String |
ClassnamePropertyType.toString(String propertyName,
Class<?> t) |
String |
ColorPropertyType.toString(String propertyName,
Color t)
A string version of the color.
|
String |
DateTimePropertyType.toString(String propertyName,
Date t) |
String |
DecimalFormatPropertyType.toString(String propertyName,
DecimalFormat t) |
String |
FileStructurePropertyType.toString(String propertyName,
File t) |
String |
FontPropertyType.toString(String propertyName,
Font t) |
String |
ListKeyValuePropertyType.toString(String propertyName,
List<KeyValueVO<K,V>> t) |
String |
ListPropertyType.toString(String propertyName,
List<T> t) |
String |
LocalePropertyType.toString(String propertyName,
Locale t) |
String |
CountryPropertyType.toString(String propertyName,
Locale t) |
String |
Point2DPropertyType.toString(String propertyName,
Point2D t) |
String |
Point3DPropertyType.toString(String propertyName,
Point3D t) |
String |
StringPropertiesPropertyType.toString(String propertyName,
Properties t) |
String |
ProxyPropertyType.toString(String propertyName,
Proxy t) |
String |
SequencePropertyType.toString(String propertyName,
SequenceVO t) |
String |
DateFormatPropertyType.toString(String propertyName,
SimpleDateFormat t) |
String |
StringPropertyType.toString(String propertyName,
String t) |
String |
TimeSpanPropertyType.toString(String propertyName,
TimeSpan t)
Returns a parseable Timespan text value.
|
String |
TimeZonePropertyType.toString(String propertyName,
TimeZone t) |
String |
VersionPropertyType.toString(String propertyName,
VersionVO t) |
void |
TimeUnitPropertyType.validateConstraints(String propertyName) |
void |
TimeSpanPropertyType.validateConstraints(String propertyName) |
void |
StringPropertyType.validateConstraints(String propertyName) |
void |
StringPropertiesPropertyType.validateConstraints(String propertyName) |
void |
SequencePropertyType.validateConstraints(String propertyName) |
void |
RegularExpressionPropertyType.validateConstraints(String propertyName) |
void |
RangePropertyType.validateConstraints(String propertyName) |
void |
ProxyPropertyType.validateConstraints(String propertyName) |
void |
PasswordPropertyType.validateConstraints(String propertyName) |
void |
LongPropertyType.validateConstraints(String propertyName) |
void |
ListPropertyType.validateConstraints(String propertyName) |
void |
ListKeyValuePropertyType.validateConstraints(String propertyName) |
void |
IntegerPropertyType.validateConstraints(String propertyName) |
void |
FileStructurePropertyType.validateConstraints(String propertyName)
Will invalidate if:
The RootDirectoryNodeLocater is null .
The RootDirectoryNode is null .
|
void |
FilePropertyType.validateConstraints(String propertyName) |
void |
EnumPropertyType.validateConstraints(String propertyName) |
void |
DoublePropertyType.validateConstraints(String propertyName) |
void |
DirectoryPropertyType.validateConstraints(String propertyName) |
void |
DateTimePropertyType.validateConstraints(String propertyName) |
void |
CountryPropertyType.validateConstraints(String propertyName) |
void |
ColorPropertyType.validateConstraints(String propertyName) |
void |
ByteSizePropertyType.validateConstraints(String propertyName) |
void |
BigIntegerPropertyType.validateConstraints(String propertyName) |
void |
BigDecimalPropertyType.validateConstraints(String propertyName) |
protected void |
EmailPropertyType.validateDomain(String propertyName,
String value,
String domain) |
void |
BigDecimalPropertyType.validateIsInRange(String propertyName,
BigDecimal value) |
void |
BigIntegerPropertyType.validateIsInRange(String propertyName,
BigInteger value) |
void |
ByteSizePropertyType.validateIsInRange(String propertyName,
ByteSizeVO value) |
void |
DateTimePropertyType.validateIsInRange(String propertyName,
Date value) |
void |
DoublePropertyType.validateIsInRange(String propertyName,
Double value) |
void |
IntegerPropertyType.validateIsInRange(String propertyName,
Integer value) |
void |
LongPropertyType.validateIsInRange(String propertyName,
Long value) |
void |
TimeSpanPropertyType.validateIsInRange(String propertyName,
TimeSpan value) |
void |
TimeUnitPropertyType.validateIsInRange(String propertyName,
TimeUnit value) |
void |
TimeUnitPropertyType.validateMinMaxValues(String propertyName) |
void |
TimeSpanPropertyType.validateMinMaxValues(String propertyName) |
void |
LongPropertyType.validateMinMaxValues(String propertyName) |
void |
IntegerPropertyType.validateMinMaxValues(String propertyName) |
void |
DoublePropertyType.validateMinMaxValues(String propertyName) |
void |
DateTimePropertyType.validateMinMaxValues(String propertyName) |
void |
ByteSizePropertyType.validateMinMaxValues(String propertyName) |
void |
BigIntegerPropertyType.validateMinMaxValues(String propertyName) |
void |
BigDecimalPropertyType.validateMinMaxValues(String propertyName) |
VersionVO |
VersionPropertyType.validateValue(String propertyName,
String value) |
URL |
URLPropertyType.validateValue(String propertyName,
String value) |
URI |
URIPropertyType.validateValue(String propertyName,
String value) |
TimeZone |
TimeZonePropertyType.validateValue(String propertyName,
String value) |
TimeUnit |
TimeUnitPropertyType.validateValue(String propertyName,
String value) |
TimeSpan |
TimeSpanPropertyType.validateValue(String propertyName,
String value)
Parses the text using the
TimeSpan.parse(String) and if the result is inside valid min and max values. |
String |
StringPropertyType.validateValue(String propertyName,
String value) |
Properties |
StringPropertiesPropertyType.validateValue(String propertyName,
String value) |
SequenceVO |
SequencePropertyType.validateValue(String propertyName,
String value) |
String |
RegularExpressionPropertyType.validateValue(String propertyName,
String value) |
RangeVO<T> |
RangePropertyType.validateValue(String propertyName,
String value) |
Proxy |
ProxyPropertyType.validateValue(String propertyName,
String value) |
Point3D |
Point3DPropertyType.validateValue(String propertyName,
String value) |
Point2D |
Point2DPropertyType.validateValue(String propertyName,
String value) |
PasswordTypeVO |
PasswordPropertyType.validateValue(String propertyName,
String value) |
MimeType |
MimeTypePropertyType.validateValue(String propertyName,
String value)
Validates the MimeType using the new MimeType(rawvalue) method.
|
Long |
LongPropertyType.validateValue(String propertyName,
String value) |
Locale |
LocalePropertyType.validateValue(String propertyName,
String value) |
List<T> |
ListPropertyType.validateValue(String propertyName,
String value) |
List<KeyValueVO<K,V>> |
ListKeyValuePropertyType.validateValue(String propertyName,
String value) |
LdapName |
LdapNamePropertyType.validateValue(String propertyName,
String value) |
LatLng |
LatLngPropertyType.validateValue(String propertyName,
String value) |
IPRange |
IPRangePropertyType.validateValue(String propertyName,
String value) |
String |
IP4AddressPropertyType.validateValue(String propertyName,
String value) |
Integer |
IntegerPropertyType.validateValue(String propertyName,
String value) |
InetAddress |
InetAddressPropertyType.validateValue(String propertyName,
String value) |
HourIntervalsVO |
HourIntervalsPropertyType.validateValue(String propertyName,
String value) |
Font |
FontPropertyType.validateValue(String propertyName,
String value) |
File |
FileStructurePropertyType.validateValue(String propertyName,
String value) |
File |
FilePropertyType.validateValue(String propertyName,
String value) |
AbstractStringFilenameFilter |
FilenameFilterPropertyType.validateValue(String propertyName,
String value) |
T |
EnumPropertyType.validateValue(String propertyName,
String value) |
String |
EmailPropertyType.validateValue(String propertyName,
String value) |
Double |
DoublePropertyType.validateValue(String propertyName,
String value) |
File |
DirectoryPropertyType.validateValue(String propertyName,
String value) |
DecimalFormat |
DecimalFormatPropertyType.validateValue(String propertyName,
String value) |
Date |
DateTimePropertyType.validateValue(String propertyName,
String value) |
SimpleDateFormat |
DateFormatPropertyType.validateValue(String propertyName,
String value) |
Locale |
CountryPropertyType.validateValue(String propertyName,
String value) |
String |
ConnectionUrlPropertyType.validateValue(String propertyName,
String value) |
Color |
ColorPropertyType.validateValue(String propertyName,
String value) |
Class<?> |
ClassnamePropertyType.validateValue(String propertyName,
String value) |
Charset |
CharsetPropertyType.validateValue(String propertyName,
String value) |
ByteSizeVO |
ByteSizePropertyType.validateValue(String propertyName,
String value) |
Boolean |
BooleanPropertyType.validateValue(String propertyName,
String value) |
BigInteger |
BigIntegerPropertyType.validateValue(String propertyName,
String value) |
BigDecimal |
BigDecimalPropertyType.validateValue(String propertyName,
String value) |
Modifier and Type | Method and Description |
---|---|
String |
PasswordTypeVO.getDecryptedValue()
Use the PropertyType to decrypt the password.
|
String |
Encryption.getDecryptedValue(String value)
Decrypt's a string value.
|
String |
PasswordTypeVO.getEncryptedValue()
Use the PropertyType to encrypt the password.
|
String |
Encryption.getEncryptedValue(String value)
Encrypts a string value.
|
long |
SequenceVO.getNextKey()
Gets the next value incremented by one.
|
boolean |
Encryption.isEncrypted(String value)
Determines if the value is already in in encrypted form.
|
boolean |
PasswordTypeVO.isSameKey(String inputValue)
Compares a 'user' entered password the the stored property password.
|
static TimeSpan |
TimeSpan.parse(Date from)
Constructs a TimeSpan instance on the basis of the difference between a date and the NOW date.
|
static TimeSpan |
TimeSpan.parse(Date from,
Date to)
Constructs a TimeSpan instance on the basis of the difference between to date instances.
|
static VersionVO |
VersionVO.parse(String value)
Parse a String to a VersionVO
|
static TimeSpan |
TimeSpan.parse(String textValue)
Concstructs a TimeSpan instance of the basis string value parsing.
|
static ByteSizeVO |
ByteSizeVO.parse(String text)
Parse a string value to a ByteSizeVO
The format is "<double>[space optional]<unit>" |
void |
RangeVO.validate(String propertyName)
Validates the attributes of this object instance.
|
void |
DefaultXmlFileValidator.validate(String sourceType,
String sourceName,
String intialValue,
File file) |
void |
DefaultFileValidator.validate(String sourceType,
String sourceName,
String intialValue,
File file) |
void |
DefaultDirectoryValidator.validate(String sourceType,
String sourceName,
String intialValue,
File file) |
protected void |
DefaultDirectoryValidator.validateAccess(String sourceType,
String sourceName,
String intialValue,
File file) |
String |
NoURLValidator.validateUrl(String propertyName,
URL url,
Proxy proxy) |
String |
DefaultURLValidator.validateUrl(String propertyName,
URL url,
Proxy proxy) |
Constructor and Description |
---|
DefaultXmlFileValidator(File schemaFile)
Creates a DefaultXmlFileValidator where the XML file will be validated against a schema file.
|
IPRange(String ipRange)
Parse a string to an ip range.
|
Modifier and Type | Method and Description |
---|---|
protected void |
WildCardFilenameFilter.intialize()
Initialize the WildCardFilenameFilter, but no further intialization is nessecary.
|
protected void |
RegularExpressionFilenameFilter.intialize()
Initializes all the filter values in to Patterns instances.
|
protected abstract void |
AbstractStringFilenameFilter.intialize()
Implement this method to make any extra initialization which is needed for the filter implementation.
|
void |
AbstractStringFilenameFilter.validate(String filterValue)
Validates the instance, in the following way.
|
Modifier and Type | Method and Description |
---|---|
void |
RootDirectoryNode.initialize(File rootDirectory)
This method initalizes the root directory node with a directory path.
|
void |
RootDirectoryNode.initialize(String rootDirectory)
This method initalizes the root directory node with a directory path.
|
void |
FilterFileNode.validate()
Will validate if "getParentNode()" and "getFilter()" is not
null , and if the AbstractStringFilenameFilter can be initialize with the string filter value. |
void |
FileNode.validate() |
void |
DirectoryNode.validate()
Validates the "file" (directory) of this node an all its child nodes.
|
abstract void |
AbstractTreeNode.validate()
Validates that "this" node is valid using the FileValidator, and its child nodes if any.
|
Modifier and Type | Method and Description |
---|---|
protected String |
SHA512Encryption.encrypt(String s)
Encrypts a string and pre appends [SHA-512].
|
String |
MD5Encryption.encrypt(String s)
Encrypts a string and pre appends [MD5].
|
protected String |
AESEncryption.encrypt(String s)
Encrypts a string and pre appends [AES].
|
String |
SHA512Encryption.getDecryptedValue(String value) |
String |
MD5Encryption.getDecryptedValue(String value) |
String |
AESEncryption.getDecryptedValue(String value) |
String |
AbstractEncryption.getEncryptedValue(String value) |
String |
SHA512Encryption.internalEncrypt(String s) |
boolean |
AbstractEncryption.isEncrypted(String value) |
boolean |
AbstractPasswordEncryption.isSameKey(String password,
String inputValue) |
Modifier and Type | Method and Description |
---|---|
protected EncodedKeySpec |
AbstractKeyPropertyType.getEncodedKeySpecInstance(byte[] keyBytes)
Constructors an instance of EncodedKeySpecClass initialized with the bytes loaded from the file provided.
|
protected KeyFactory |
AbstractKeyPropertyType.getKeyFactory()
Gets a KeyFactory instance on the base of the algorithm.
|
void |
TextFromFilePropertyType.validateConstraints(String propertyName)
Validates the TextFromFile type constraints.
|
void |
KeyStoreFilePropertyType.validateConstraints(String propertyName)
Validates the constraints.
|
void |
KeySignedFilePropertyType.validateConstraints(String propertyName)
Validates that :
PublicKey Property is not
null .
SignedFile Property is not null .
Signature Property is not null .
Algorithm is not null an not empty.
Provider is not null an not empty.
|
void |
ImageFromURLPropertyType.validateConstraints(String propertyName)
No constraints.
|
void |
ImageFromFilePropertyType.validateConstraints(String propertyName)
No constraints.
|
void |
CertificatesFilePropertyType.validateConstraints(String propertyName)
Validates if
Type is not
null and not empty.
If the provider is not null than it must not be empty.
|
void |
CertificateKeyStoredPropertyType.validateConstraints(String propertyName)
Will fail validate if alias is
null or empty or if the keystore is invalid. |
void |
BytesFromFilePropertyType.validateConstraints(String propertyName)
No constraints
|
void |
AbstractKeyPropertyType.validateConstraints(String propertyName)
Validates any constraints there are on a Key.
|
String |
TextFromFilePropertyType.validateDerivedValue(String propertyName)
Loads the file with the FileUtils.
|
KeyStore |
KeyStoreFilePropertyType.validateDerivedValue(String propertyName) |
SignedFile |
KeySignedFilePropertyType.validateDerivedValue(String propertyName) |
BufferedImage |
ImageFromURLPropertyType.validateDerivedValue(String propertyName)
Loads a BufferedImage from ImageIO via an URL.
|
BufferedImage |
ImageFromFilePropertyType.validateDerivedValue(String propertyName)
Loads a BufferedImage from a file
|
SignedFile |
CertificateSignedFilePropertyType.validateDerivedValue(String propertyName)
Verifies that the signed file is valid, using the signature file and public key from the certificate.
|
Collection<? extends Certificate> |
CertificatesFilePropertyType.validateDerivedValue(String propertyName)
Using the CertificateFactory.generateCertificates(java.io.InputStream) using the CertificateType and Provider.
|
Certificate |
CertificateKeyStoredPropertyType.validateDerivedValue(String propertyName) |
byte[] |
BytesFromFilePropertyType.validateDerivedValue(String propertyName)
Using the FileUtils.loadAsBytes(String,File) to load bytes.
|
T |
AbstractKeyPropertyType.validateDerivedValue(String propertyName)
Loads the Key from a file.
|
protected PublicKey |
PublicKeyFilePropertyType.validateKey(EncodedKeySpec spec)
Gets the PublicKey from KeyFactory.
|
protected PrivateKey |
PrivateKeyFilePropertyType.validateKey(EncodedKeySpec spec)
Gets the PrivateKey from KeyFactory.
|
protected abstract T |
AbstractKeyPropertyType.validateKey(EncodedKeySpec spec)
Validates the EncodedKeySpec to a ket of type T.
|
Modifier and Type | Method and Description |
---|---|
void |
FileDerivedPropertyType.validateConstraints(String propertyName)
Validates that the "derivedFromFile" is a file which can be read.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PasswordEncryption.isSameKey(String password,
String inputValue)
Compares two string values to see if they are equal, no matter if the one or the other is encrypted.
|
void |
FileValidator.validate(String sourceType,
String sourceName,
String intialValue,
File file)
Method to implement for validation a
File . |
void |
Range.validateIsInRange(String propertyName,
T value)
Validates that a value is inside the valid range of min and max value if defined.
|
void |
Range.validateMinMaxValues(String propertyName)
Validates that minValue is less or equal to maxValue, must be called by validateConstraints, and if there is a default value that is inside the valid range.
|
String |
URLValidator.validateUrl(String propertyName,
URL url,
Proxy proxy)
Validates that a valid connection can be made to the URL.
|
Modifier and Type | Method and Description |
---|---|
String |
MarkerPasswordPropertyType.getDecryptedValue(String value)
Get the decrypted value if possible, otherwise a PropertyException is thrown.
|
String |
MarkerPasswordPropertyType.getEncryptedValue(String value)
Get the encrypted value if possible, otherwise a PropertyException is thrown.
|
boolean |
MarkerPasswordPropertyType.isEncrypted(String value)
Evaluates if the string value is encrypted or not, if fails then throwing a PropertyException.
|
boolean |
MarkerPasswordPropertyType.isSameKey(String password,
String inputValue)
Evaluates if the stored key (password) is the same as the inputValue, both can be encrypted or not.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
PasswordUtils.isPasswordEncrypted(String expectedEncryptionMethodName,
String value)
Determines if the a String is encrypted or not
|
static byte[] |
FileUtils.loadAsBytes(String propertyName,
File file)
Loading an array of bytes from a file.
|
static StringList |
FileUtils.loadAsLines(String propertyName,
File file)
Load a file to a list of Strings, using the Files.readAllLines(File,Charset) and the Charset.defaultCharset().
|
static String |
FileUtils.loadAsString(String propertyName,
File file)
Loads a file into a string using the InputStreamReader with a UTF_8 Charset and a default buffersize of 2048.
|
static String |
FileUtils.loadAsString(String propertyName,
File file,
int bufferSize,
String charsetName)
Loads a file into a string using the InputStreamReader with a charset and buffersize.
|
static String |
FileUtils.loadAsString(String propertyName,
File file,
String charsetName)
Loads a file into a string using the InputStreamReader with a charset and a default buffersize of 2048.
|
static <T extends Comparable<T>> |
RangeUtils.validateIsInRange(String propertyName,
Range<T> range,
T value)
Validates that a given value T is inside the range defined.
|
static <T extends Comparable<T>> |
RangeUtils.validateMinMaxValues(String propertyName,
Range<T> range,
T defaultValue)
Validates the range settings called by validateConstraints method in the PropertyType.
|
static void |
StringUtils.validateString(String propertyName,
String name,
String value)
Convenience method which validate a string null, empty after trim (length==0)
|
static void |
StringUtils.validateString(String propertyName,
String name,
String value,
boolean allowNull,
boolean allowEmpty)
Convenience method which validate a string null, empty after trim (length==0)
|