public ChoiceAttributeType(String name, int min, int max, AttributeType[] children, Filter restriction) { nill = calculateNillable(children); this.min = min; this.max = max; this.name = name; //ensure immutable. this.children = copyChildren(children); this.restriction = restriction; }
public ChoiceAttributeType(String name, int min, int max, AttributeType[] children, Filter restriction) { super(DefaultAttributeType.createAttributeType(name, Object.class, restriction), new NameImpl(name),min,max,calculateNillableStatic(children),null); //ensure immutable. this.children = copyChildren(children); }
/** * DOCUMENT ME! * * @param copy */ public ChoiceAttributeType(ChoiceAttributeType copy) { nill = copy.isNillable(); min = copy.getMinOccurs(); max = copy.getMaxOccurs(); name = copy.getName(); this.children = copyChildren(copy.getAttributeTypes()); restriction = copy.getRestriction(); }
/** * DOCUMENT ME! * * @param copy */ public ChoiceAttributeType(ChoiceAttributeType copy) { super( copy.getType(), copy.getName(), copy.getMinOccurs(), copy.getMaxOccurs(), copy.isNillable(), copy.getDefaultValue() ); this.children = copyChildren(copy.getAttributeTypes()); }