/** * Constructor for the <code>AttributeParameter</code> object. * This is used to create a parameter that can be used to * determine a consistent name using the provided XML annotation. * * @param factory this is the constructor the parameter is in * @param value this is the annotation used for the parameter * @param index this is the index the parameter appears at * @param format this is the format used to style the paths */ public AttributeParameter(Constructor factory, Attribute value, Format format, int index) throws Exception { this.contact = new Contact(value, factory, index); this.label = new AttributeLabel(contact, value, format); this.expression = label.getExpression(); this.path = label.getPath(); this.type = label.getType(); this.name = label.getName(); this.key = label.getKey(); this.index = index; }
/** * Constructor for the <code>AttributeParameter</code> object. * This is used to create a parameter that can be used to * determine a consistent name using the provided XML annotation. * * @param factory this is the constructor the parameter is in * @param value this is the annotation used for the parameter * @param index this is the index the parameter appears at * @param format this is the format used to style the paths */ public AttributeParameter(Constructor factory, Attribute value, Format format, int index) throws Exception { this.contact = new Contact(value, factory, index); this.label = new AttributeLabel(contact, value, format); this.expression = label.getExpression(); this.path = label.getPath(); this.type = label.getType(); this.name = label.getName(); this.key = label.getKey(); this.index = index; }
/** * Constructor for the <code>AttributeParameter</code> object. * This is used to create a parameter that can be used to * determine a consistent name using the provided XML annotation. * * @param factory this is the constructor the parameter is in * @param value this is the annotation used for the parameter * @param index this is the index the parameter appears at * @param format this is the format used to style the paths */ public AttributeParameter(Constructor factory, Attribute value, Format format, int index) throws Exception { this.contact = new Contact(value, factory, index); this.label = new AttributeLabel(contact, value, format); this.expression = label.getExpression(); this.path = label.getPath(); this.type = label.getType(); this.name = label.getName(); this.key = label.getKey(); this.index = index; }