public AtlasRelationshipEndDef(String typeName, String name, Cardinality cardinality, boolean isContainer, boolean isLegacyAttribute) { setType(typeName); setName(name); setCardinality(cardinality); setIsContainer(isContainer); setIsLegacyAttribute(isLegacyAttribute); }
/** * * @param typeName * - The name of an entityDef type * @param name * - The name of the new attribute that the entity instance will pick up. * @param cardinality * - whether the end is SINGLE (1) or SET (many) * @param isContainer * - whether the end is a container or not * @param isLegacyAttribute * - whether this is a legacy attribute * @param description * - The description of this end of the relationship. */ public AtlasRelationshipEndDef(String typeName, String name, Cardinality cardinality, boolean isContainer, boolean isLegacyAttribute, String description) { setType(typeName); setName(name); setCardinality(cardinality); setIsContainer(isContainer); setIsLegacyAttribute(isLegacyAttribute); setDescription(description); }
/** * Construct using an existing AtlasRelationshipEndDef * @param other */ public AtlasRelationshipEndDef(AtlasRelationshipEndDef other) { if (other != null) { setType(other.getType()); setName(other.getName()); setIsContainer(other.getIsContainer()); setCardinality(other.getCardinality()); setIsLegacyAttribute(other.isLegacyAttribute); } }
/** * Construct using an existing AtlasRelationshipEndDef * @param other */ public AtlasRelationshipEndDef(AtlasRelationshipEndDef other) { if (other != null) { setType(other.getType()); setName(other.getName()); setIsContainer(other.getIsContainer()); setCardinality(other.getCardinality()); setIsLegacyAttribute(other.isLegacyAttribute); setDescription(other.description); } }