@Test public void testValid() { assertFalse(new RelationConstraint("", "subType", "pos", "source", "target").isValid()); assertFalse(new RelationConstraint("type", "", "pos", "source", "target").isValid()); assertFalse(new RelationConstraint("type", "subType", "", "source", "target").isValid()); assertFalse(new RelationConstraint("type", "subType", "pos", null, "target").isValid()); assertFalse(new RelationConstraint("type", "subType", "pos", "source", "").isValid()); assertFalse(new RelationConstraint("type", null, "pos", "source", "").isValid()); }
public boolean isValid() { return !isNullOrEmpty(type, subType, pos, source, target); }
RelationConstraint { public boolean isValid() { return !isNullOrEmpty(type, subType, pos, source, target); } }
RelationConstraint { public boolean isValid() { return !isNullOrEmpty(type, subType, pos, source, target); } RelationConstraint(
      final String type,
      final String subType,
      final String pos,
      final String source,
      final String target); }
RelationConstraint { public boolean isValid() { return !isNullOrEmpty(type, subType, pos, source, target); } RelationConstraint(
      final String type,
      final String subType,
      final String pos,
      final String source,
      final String target); String getSource(); String getTarget(); String getPos(); String getSubType(); String getType(); boolean isValid(); boolean matches(final Relation relation, final boolean symmetric); boolean matches(Interaction interaction, Collection<WordToken> words); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
RelationConstraint { public boolean isValid() { return !isNullOrEmpty(type, subType, pos, source, target); } RelationConstraint(
      final String type,
      final String subType,
      final String pos,
      final String source,
      final String target); String getSource(); String getTarget(); String getPos(); String getSubType(); String getType(); boolean isValid(); boolean matches(final Relation relation, final boolean symmetric); boolean matches(Interaction interaction, Collection<WordToken> words); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }