com.microsoft.tfs.core.clients.webservices
Class PropertyValidation
java.lang.Object
com.microsoft.tfs.core.clients.webservices.PropertyValidation
public class PropertyValidation
- extends java.lang.Object
Method Summary |
static void |
checkPropertyLength(java.lang.String propertyValue,
java.lang.Boolean allowNull,
int minLength,
int maxLength,
java.lang.String propertyName,
java.lang.Class<? extends java.lang.Object> containerType,
java.lang.String topLevelParamName)
|
static
<T extends java.lang.Comparable<T>>
void |
|
checkRange(T propertyValue,
T minValue,
T maxValue,
java.lang.String propertyName,
java.lang.Class<? extends java.lang.Object> containerType,
java.lang.String topLevelParamName)
Verify that a propery is within the bounds of the specified range. |
static void |
validatePropertyFilter(java.lang.String propertyNameFilter)
Make sure the property filter conforms to the requirements for a property
filter. |
static void |
validatePropertyName(java.lang.String propertyName)
Make sure the property name conforms to the requirements for a property
name. |
static void |
validatePropertyValue(java.lang.String propertyName,
java.lang.Object value)
Make sure the property value is within the supported range of values for
the type of the property specified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_PROPERTY_NAME_LENGTH_IN_CHARS
public static final int MAX_PROPERTY_NAME_LENGTH_IN_CHARS
- Constant Field Value:
400
- See Also:
- Constant Field Values
MAX_BYTE_VALUE_SIZE
public static final int MAX_BYTE_VALUE_SIZE
- Constant Field Value:
8388608
- See Also:
- Constant Field Values
MAX_STRING_VALUE_LENGTH
public static final int MAX_STRING_VALUE_LENGTH
- Constant Field Value:
4194304
- See Also:
- Constant Field Values
MIN_ALLOWED_DATE_TIME
public static final java.util.Calendar MIN_ALLOWED_DATE_TIME
MAX_ALLOWED_DATE_TIME
public static final java.util.Calendar MAX_ALLOWED_DATE_TIME
MIN_NEGATIVE
public static double MIN_NEGATIVE
MAX_NEGATIVE
public static double MAX_NEGATIVE
MIN_POSITIVE
public static double MIN_POSITIVE
MAX_POSITIVE
public static double MAX_POSITIVE
PropertyValidation
public PropertyValidation()
validatePropertyName
public static void validatePropertyName(java.lang.String propertyName)
throws TeamFoundationPropertyValidationException
- Make sure the property name conforms to the requirements for a property
name.
- Throws:
TeamFoundationPropertyValidationException
- if the name is invalid
validatePropertyValue
public static void validatePropertyValue(java.lang.String propertyName,
java.lang.Object value)
throws TeamFoundationPropertyValidationException
- Make sure the property value is within the supported range of values for
the type of the property specified.
- Throws:
TeamFoundationPropertyValidationException
- if the value is invalid
checkPropertyLength
public static void checkPropertyLength(java.lang.String propertyValue,
java.lang.Boolean allowNull,
int minLength,
int maxLength,
java.lang.String propertyName,
java.lang.Class<? extends java.lang.Object> containerType,
java.lang.String topLevelParamName)
checkRange
public static <T extends java.lang.Comparable<T>> void checkRange(T propertyValue,
T minValue,
T maxValue,
java.lang.String propertyName,
java.lang.Class<? extends java.lang.Object> containerType,
java.lang.String topLevelParamName)
- Verify that a propery is within the bounds of the specified range.
validatePropertyFilter
public static void validatePropertyFilter(java.lang.String propertyNameFilter)
- Make sure the property filter conforms to the requirements for a property
filter.
© 2015 Microsoft. All rights reserved.