@Test public void testTitle() { final Restriction id = Restriction.title("my title"); assertThat(id, is(notNullValue())); assertThat(id.getType(), is(Restriction.Type.TITLE)); assertThat(id.getValue(), is("my title")); }
public static Restriction title(String value) { return new Restriction(Type.TITLE, value); }
Restriction { public static Restriction title(String value) { return new Restriction(Type.TITLE, value); } }
Restriction { public static Restriction title(String value) { return new Restriction(Type.TITLE, value); } private  Restriction(Type type, String value); }
Restriction { public static Restriction title(String value) { return new Restriction(Type.TITLE, value); } private  Restriction(Type type, String value); Type getType(); String getValue(); static Restriction identifier(String value); static Restriction title(String value); static Restriction summary(String value); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
Restriction { public static Restriction title(String value) { return new Restriction(Type.TITLE, value); } private  Restriction(Type type, String value); Type getType(); String getValue(); static Restriction identifier(String value); static Restriction title(String value); static Restriction summary(String value); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }