Java 类org.hibernate.validator.Length 实例源码

项目:caarray    文件:Factor.java   
/**
 * Gets the name.
 *
 * @return the name
 */
@NotNull
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
@Index(name = "idx_name")
public String getName() {
    return this.name;
}
项目:caarray    文件:Experiment.java   
/**
 * Gets the title.
 *
 * @return the title
 */
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
@NotNull
@Index(name = "idx_title")
@AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME)
public String getTitle() {
    return this.title;
}
项目:caarray    文件:Category.java   
/**
 * Gets the name.
 *
 * @return the name
 */
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
@NotNull
public String getName() {
    return name;

}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the firstName
 */
 @Column(length = FIRST_NAME_FIELD_LENGTH)
 @NotNull
 @Length(min = 1, max = FIRST_NAME_FIELD_LENGTH)
public String getFirstName() {
    return firstName;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the lastName
 */
@Column(length = LAST_NAME_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = LAST_NAME_FIELD_LENGTH)
public String getLastName() {
    return lastName;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the emaiId
 */
@Column(length = EMAIL_FIELD_LENGTH)
@NotNull
@Email
@Length(min = 1, max = EMAIL_FIELD_LENGTH)
public String getEmail() {
    return email;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the phone
 */
@Column(length = PHONE_NUMBER_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = PHONE_NUMBER_FIELD_LENGTH)
@Pattern(regex = "(\\+)?([-\\._\\(\\) ]?[\\d]{3,20}[-\\._\\(\\) ]?){2,10}")
public String getPhone() {
    return phone;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the fax
 */
@Column(length = FAX_FIELD_LENGTH)
@Length(max = FAX_FIELD_LENGTH)
@Pattern(regex = "(\\+)?([-\\._\\(\\) ]?[\\d]{3,20}[-\\._\\(\\) ]?){2,10}||^$")
public String getFax() {
    return fax;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the organization
 */
@Column(length = ORGANIZATION_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = ORGANIZATION_FIELD_LENGTH)
public String getOrganization() {
    return organization;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the address1
 */
@Column(length = ADDRESS1_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = ADDRESS1_FIELD_LENGTH)
public String getAddress1() {
    return address1;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the city
 */
@Column(length = CITY_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = CITY_FIELD_LENGTH)
public String getCity() {
    return city;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the zip
 */
@Column(length = ZIP_FIELD_LENGTH)
@NotNull
@Length(min = 1, max = ZIP_FIELD_LENGTH)
public String getZip() {
    return zip;
}
项目:caarray    文件:AbstractBioMaterial.java   
/**
 * Gets the name.
 *
 * @return the name
 */
@NotNull
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
@Index(name = "idx_name")
public String getName() {
    return this.name;
}
项目:windup    文件:Booking.java   
@NotNull(message="Credit card number is required")
@Length(min=16, max=16, message="Credit card number must 16 digits long")
@Pattern(regex="^\\d*$", message="Credit card number must be numeric")
public String getCreditCard()
{
   return creditCard;
}
项目:windup    文件:User.java   
@Id
@Length(min=4, max=15)
@Pattern(regex="^\\w*$", message="not a valid username")
public String getUsername()
{
   return username;
}
项目:windup-rulesets    文件:ShipAction.java   
@NotNull
@Length(min=4,max=10)
public String getTrack() {
    return track;
}
项目:caarray    文件:Organism.java   
/**
 * @return the scientificName
 */
@NotNull
@Length(min = 1, max = AbstractCaArrayObject.DEFAULT_STRING_COLUMN_SIZE)
public String getScientificName() {
    return scientificName;
}
项目:caarray    文件:UserDefinedFactorValue.java   
/**
 * @return the value
 */
@Length(max = DEFAULT_STRING_COLUMN_SIZE)
public String getValue() {
    return value;
}
项目:caarray    文件:Factor.java   
/**
 * @return the description
 */
@Length(max = LARGE_TEXT_FIELD_LENGTH)
public String getDescription() {
    return this.description;
}
项目:caarray    文件:Experiment.java   
/**
 * Gets the description.
 *
 * @return the description
 */
@Length(max = LARGE_TEXT_FIELD_LENGTH)
@AttributePolicy(allow = SecurityPolicy.BROWSE_POLICY_NAME)
public String getDescription() {
    return this.description;
}
项目:caarray    文件:Experiment.java   
/**
 * Get the description of the experiment design.
 * @return the designDescription
 */
@Column(name = "experiment_design_description")
@Length(min = 1, max = LARGE_TEXT_FIELD_LENGTH)
public String getDesignDescription() {
    return this.designDescription;
}
项目:caarray    文件:Experiment.java   
/**
 * @return the qualityControlDescription
 */
@Length(max = LARGE_TEXT_FIELD_LENGTH)
public String getQualityControlDescription() {
    return this.qualityControlDescription;
}
项目:caarray    文件:Experiment.java   
/**
 * @return the replicateDescription
 */
@Length(max = LARGE_TEXT_FIELD_LENGTH)
public String getReplicateDescription() {
    return this.replicateDescription;
}
项目:caarray    文件:Gene.java   
/**
 * @return the fullName
 */
@Length(max = LARGE_TEXT_FIELD_LENGTH)
public String getFullName() {
    return fullName;
}
项目:caarray    文件:ArrayDesign.java   
/**
 * Gets the name.
 * 
 * @return the name
 */
@NotNull
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
public String getName() {
    return this.name;
}
项目:caarray    文件:ArrayDesign.java   
/**
 * @return the description
 */
@Length(max = LARGE_TEXT_FIELD_LENGTH)
public String getDescription() {
    return this.description;
}
项目:caarray    文件:Protocol.java   
/**
 * Gets the name.
 *
 * @return the name
 */
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
@NotNull
public String getName() {
    return this.name;
}
项目:caarray    文件:Term.java   
/**
 * Gets the value.
 *
 * @return the value
 */
@NotNull
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
public String getValue() {
    return this.value;
}
项目:caarray    文件:TermSource.java   
/**
 * Gets the name.
 *
 * @return the name
 */
@NotNull
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
public String getName() {
    return this.name;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the middleInitial
 */
@Column(length = MIDDLE_INITIAL_FIELD_LENGTH)
@Length(max = 1)
public String getMiddleInitial() {
    return middleInitial;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the address2
 */
@Column(length = ADDRESS2_FIELD_LENGTH)
@Length(max = ADDRESS2_FIELD_LENGTH)
public String getAddress2() {
    return address2;
}
项目:caarray    文件:RegistrationRequest.java   
/**
 * @return the province
 */
@Column(length = PROVINCE_FIELD_LENGTH)
@Length(max = PROVINCE_FIELD_LENGTH)
public String getProvince() {
    return province;
}
项目:caarray    文件:AbstractContact.java   
/**
 * Gets the email.
 *
 * @return the email
 */
@Length(max = DEFAULT_STRING_COLUMN_SIZE)
@Email
public String getEmail() {
    return this.email;
}
项目:caarray    文件:AbstractBioMaterial.java   
/**
 * @return the externalId
 */
@Length(max = DEFAULT_STRING_COLUMN_SIZE)
@Index(name = "idx_name")
public String getExternalId() {
    return this.externalId;
}
项目:caarray    文件:Hybridization.java   
/**
 * Gets the name.
 *
 * @return the name
 */
@NotNull
@Length(min = 1, max = DEFAULT_STRING_COLUMN_SIZE)
public String getName() {
    return this.name;
}
项目:caarray    文件:Hybridization.java   
/**
 * @return the description
 */
@Length(max = DEFAULT_STRING_COLUMN_SIZE)
public String getDescription() {
    return this.description;
}
项目:windup    文件:Booking.java   
@NotNull(message="Credit card name is required")
@Length(min=3, max=70, message="Credit card name is required")
public String getCreditCardName()
{
   return creditCardName;
}
项目:windup    文件:User.java   
@NotNull
@Length(max=100)
public String getName()
{
   return name;
}
项目:windup    文件:User.java   
@NotNull
@Length(min=5, max=15)
public String getPassword()
{
   return password;
}
项目:windup    文件:Hotel.java   
@Length(max=50) @NotNull
public String getName()
{
   return name;
}