All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hydra.ext.io.shex.syntax.StringLength Maven / Gradle / Ivy

The newest version!
// Note: this is an automatically generated file. Do not edit.

package hydra.ext.io.shex.syntax;

import java.io.Serializable;

public abstract class StringLength implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/io/shex/syntax.StringLength");
  
  public static final hydra.core.Name FIELD_NAME_L_E_N_G_T_H = new hydra.core.Name("lENGTH");
  
  public static final hydra.core.Name FIELD_NAME_M_I_N_L_E_N_G_T_H = new hydra.core.Name("mINLENGTH");
  
  public static final hydra.core.Name FIELD_NAME_M_A_X_L_E_N_G_T_H = new hydra.core.Name("mAXLENGTH");
  
  private StringLength () {
  
  }
  
  public abstract  R accept(Visitor visitor) ;
  
  public interface Visitor {
    R visit(LENGTH instance) ;
    
    R visit(MINLENGTH instance) ;
    
    R visit(MAXLENGTH instance) ;
  }
  
  public interface PartialVisitor extends Visitor {
    default R otherwise(StringLength instance) {
      throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
    }
    
    default R visit(LENGTH instance) {
      return otherwise((instance));
    }
    
    default R visit(MINLENGTH instance) {
      return otherwise((instance));
    }
    
    default R visit(MAXLENGTH instance) {
      return otherwise((instance));
    }
  }
  
  public static final class LENGTH extends hydra.ext.io.shex.syntax.StringLength implements Serializable {
    public LENGTH () {
    
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof LENGTH)) {
        return false;
      }
      LENGTH o = (LENGTH) (other);
      return true;
    }
    
    @Override
    public int hashCode() {
      return 0;
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class MINLENGTH extends hydra.ext.io.shex.syntax.StringLength implements Serializable {
    public MINLENGTH () {
    
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof MINLENGTH)) {
        return false;
      }
      MINLENGTH o = (MINLENGTH) (other);
      return true;
    }
    
    @Override
    public int hashCode() {
      return 0;
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class MAXLENGTH extends hydra.ext.io.shex.syntax.StringLength implements Serializable {
    public MAXLENGTH () {
    
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof MAXLENGTH)) {
        return false;
      }
      MAXLENGTH o = (MAXLENGTH) (other);
      return true;
    }
    
    @Override
    public int hashCode() {
      return 0;
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy