Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   =================== DO NOT EDIT THIS FILE ====================
   Generated by Modello 1.4.1 on 2012-04-27 06:11:26,
   any modifications will be overwritten.
   ==============================================================
   */
  
  package org.sonatype.nexus.rest.model;

Form Field definition.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "form-field" )
 public class FormFieldResource
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
The id of the field.
 
     private String id;

    
The type of the field.
 
     private String type;

    
The label of the field.
 
     private String label;

    
The help text of the field.
 
     private String helpText;

    
flag that states if the field is required.
 
     private boolean required = false;

    
regex validation that will validate the field.
 
     private String regexValidation;
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Get the help text of the field.

Returns:
String
 
     public String getHelpText()
     {
         return this.;
     } //-- String getHelpText()
 
    
Get the id of the field.

Returns:
String
 
     public String getId()
     {
         return this.;
     } //-- String getId()
 
    
Get the label of the field.

Returns:
String
 
     public String getLabel()
     {
         return this.;
     } //-- String getLabel()
 
    
Get regex validation that will validate the field.

Returns:
String
 
     public String getRegexValidation()
     {
         return this.;
     } //-- String getRegexValidation()

    
Get the type of the field.

Returns:
String
    public String getType()
    {
        return this.;
    } //-- String getType()

    
Get flag that states if the field is required.

Returns:
boolean
    public boolean isRequired()
    {
        return this.;
    } //-- boolean isRequired()

    
Set the help text of the field.

Parameters:
helpText
    public void setHelpTextString helpText )
    {
        this. = helpText;
    } //-- void setHelpText( String )

    
Set the id of the field.

Parameters:
id
    public void setIdString id )
    {
        this. = id;
    } //-- void setId( String )

    
Set the label of the field.

Parameters:
label
    public void setLabelString label )
    {
        this. = label;
    } //-- void setLabel( String )

    
Set regex validation that will validate the field.

Parameters:
regexValidation
    public void setRegexValidationString regexValidation )
    {
        this. = regexValidation;
    } //-- void setRegexValidation( String )

    
Set flag that states if the field is required.

Parameters:
required
    public void setRequiredboolean required )
    {
        this. = required;
    } //-- void setRequired( boolean )

    
Set the type of the field.

Parameters:
type
    public void setTypeString type )
    {
        this. = type;
    } //-- void setType( String )
New to GrepCode? Check out our FAQ X