Exemple #1
0
 public static JwList<JwValidationError> ValidateSerialNumber(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("Nest", "Serial Number", value);
     o.Errors = v;
     o.MaximumLength = MAXIMUM_SERIAL_NUMBER_LENGTH;;
     o.Validate();
     return v;
 }
 public static JwList<JwValidationError> ValidateUldSerialNumber(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("Uld", "Number", value);
     o.Errors = v;
     o.MaximumLength = 7;
     o.Validate();
     return v;
 }
Exemple #3
0
 //# __________ PROTOCOL :: PUBLIC __________ #//
 public static JwList<JwValidationError> ValidateNote(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("Nest", "Note", value);
     o.Errors = v;
     o.MaximumLength = MAXIMUM_NOTE_LENGTH;
     o.Validate();
     return v;
 }
Exemple #4
0
 public static JwList<JwValidationError> ValidateNote(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("Cart", "Note", value);
     o.Errors = v;
     o.MaximumLength = 50;
     o.Validate();
     return v;
 }
 //# __________ PROTOCOL :: PUBLIC __________ #//
 public static JwList<JwValidationError> ValidateName(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("Nest", "Name", value);
     o.Errors = v;
     o.MaximumLength = NAME_LENGTH;
     o.RequiredFlag = true;
     o.Validate();
     return v;
 }
Exemple #6
0
        //# __________ PROTOCOL :: PUBLIC __________ #//
        public static JwList<JwValidationError> ValidateSerialNumber(Object e)
        {
            String value = (String)e;
            JwList<JwValidationError> v = new JwList<JwValidationError>();

            JwStringValidator o = new JwStringValidator("Cart", "Number", value);
            o.Errors = v;
            o.MaximumLength = SERIAL_NUMBER_LENGTH;
            o.RequiredFlag = true;
            o.Validate();
            return v;
        }
 public static JwList<JwValidationError> ValidateDestination(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("Flight", "Destination Airport Code", value);
     o.Errors = v;
     o.FixedLength = 3;
     o.LetterFlag = true;
     o.RequiredFlag = true;
     o.Validate();
     return v;
 }
Exemple #8
0
 //# __________ PROTOCOL :: PUBLIC __________ #//
 public static JwList<JwValidationError> ValidateUserName(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("User", "User Name", value);
     o.Errors = v;
     o.MaximumLength = USER_NAME_MAXIMUM_LENGTH;
     o.CodeFlag = true;
     o.RequiredFlag = true;
     o.Validate();
     return v;
 }
Exemple #9
0
 //# __________ PROTOCOL :: CONST __________ #//
 //# __________ PROTOCOL :: PUBLIC __________ #//
 public static JwList<JwValidationError> ValidateType(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("ULD", "Type", value);
     o.Errors = v;
     o.FixedLength = 3;
     o.AlphaNumericFlag = true;
     o.RequiredFlag = true;
     o.Validate();
     return v;
 }
 //# __________ PROTOCOL :: PUBLIC __________ #//
 public static JwList<JwValidationError> ValidateIdentifier(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("Container", "Identifer", value);
     o.Errors = v;
     o.MaximumLength = SERIAL_NUMBER_LENGTH;
     //            o.TextFlag = true;
     o.RequiredFlag = true;
     o.Validate();
     return v;
 }
 public static JwList<JwValidationError> ValidateFlightNumber(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("Flight", "Number", value);
     o.Errors = v;
     o.MinimumLength = 1;
     o.MaximumLength = 5;
     o.CodeFlag = true;
     o.RequiredFlag = true;
     o.Validate();
     return v;
 }
 //# __________ PROTOCOL :: PUBLIC __________ #//
 public static JwList<JwValidationError> ValidateCarrierCode(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("Carrier", "Code", value);
     o.Errors = v;
     o.MaximumLength = CARRIER_CODE_LENGTH;
     o.MinimumLength = CARRIER_CODE_LENGTH;
     o.CodeFlag = true;
     o.RequiredFlag = true;
     o.Validate();
     return v;
 }
Exemple #13
0
 public static JwList<JwValidationError> ValidateSerialNumber(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     JwStringValidator o = new JwStringValidator("ULD", "Serial Number", value);
     o.Errors = v;
     o.MinimumLength = VmProperties.Default.GetNestUldSerialNumberMinimumLength();
     o.MaximumLength = VmProperties.Default.GetNestUldSerialNumberMaximumLength();
     o.DigitFlag = true;
     o.RequiredFlag = true;
     o.Validate();
     return v;
 }
Exemple #14
0
 public static JwList<JwValidationError> ValidateOwner(Object e)
 {
     String value = (String)e;
     JwList<JwValidationError> v = new JwList<JwValidationError>();
     if( value != null && VmProperties.Default.GetNestUldOwnerNonStandardEnabledFlag() )
     {
         value = value.ToUpper();
         if( VmProperties.Default.GetUldDefaultOwners().Contains(value) )
             return v;
     }
     JwStringValidator o = new JwStringValidator("ULD", "Owner", value);
     o.Errors = v;
     o.FixedLength = 2;
     o.AlphaNumericFlag = true;
     o.RequiredFlag = true;
     o.Validate();
     return v;
 }