/** * Obtain a DcsRelationship from a string representation. May return <code>null</code> if the type isn't supported. * * @param relType a string representing the relationship type * @return the DcsRelationship or <code>null</code> if it isn't supported. */ public static DcsRelationship fromString(String relType) { for (DcsRelationship value : values()) { if (value.asString().equals(relType)) { return value; } } return null; } }