mCardinality = cardinality; mRequiredInClasses = requiredIn; mOptionalInClasses = optionalIn; mFlags = flags; mGlobalConfigValues = globalConfigValues; mDefaultCOSValues = defaultCOSValues;
    public AttributeInfo (String attrName, int id, AttributeCallback callback, int type, String value, boolean immutable,             long min, long max)    {        mName = attrName;        mImmutable = immutable;        mCallback = callback;        mType = type;        mValue = value;        mMin = min;        mMax = max;        mId = id;                switch (mType) {        case TYPE_INTEGER:            if (mMin < Integer.MIN_VALUE) mMin = Integer.MIN_VALUE;            if (mMax > Integer.MAX_VALUE) mMax = Integer.MAX_VALUE;                        break;        case TYPE_ENUM:            String enums[] = value.split(",");            mEnumSet = new HashSet(enums.length);            for (int i=0; i < enums.length; i++) {                mEnumSet.add(enums[i]);            }            break;        case TYPE_REGEX:            mRegex = Pattern.compile(value);            break;        }    }