Class Restriction


  • public class Restriction
    extends java.lang.Object
    Metadata query restriction. See static factory methods to get instance of desired restriction type.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Restriction.Type  
    • Method Detail

      • getValue

        public java.lang.String getValue()
      • identifier

        public static Restriction identifier​(java.lang.String value)
        Construct a new instance with restriction type identifier and given value.
        Parameters:
        value - identifier you want to search for
        Returns:
        new restriction for identifier restriction
      • title

        public static Restriction title​(java.lang.String value)
        Construct a new instance with restriction type title and given value.
        Parameters:
        value - title you want to search for
        Returns:
        new restriction for title restriction
      • summary

        public static Restriction summary​(java.lang.String value)
        Construct a new instance with restriction type summary and given value.
        Parameters:
        value - summary you want to search for
        Returns:
        new restriction for summary restriction
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object