public Relationship( Structure parentStructure, Structure childStructure, String parentRelationName, String childRelationName, int cardinality, boolean parentRequired, boolean childRequired) { super.setType("relationship"); this.parentStructureInode = parentStructure.getInode(); this.childStructureInode = childStructure.getInode(); this.parentRelationName = parentRelationName; this.childRelationName = childRelationName; this.cardinality = cardinality; this.parentRequired = parentRequired; this.childRequired = childRequired; this.relationTypeValue = parentRelationName.replaceAll(" ", "_") + "-" + childRelationName.replaceAll(" ", "_"); }