protected String getCalendarType(AttributeQuery attributes) {

        if (this.isMonthElement() || this.isEraElement()) {
            return attributes.get(Attributes.CALENDAR_TYPE, this.defaultCalendarType);
        } else if (this.isWeekdayElement()) {
            return CalendarText.ISO_CALENDAR_TYPE;
        } else {
            return this.defaultCalendarType;
        }

    }
protected String getCalendarType ( AttributeQuery attributes ) { if ( this . isMonthElement ( ) || this . isEraElement ( ) ) { return attributes . get ( Attributes . CALENDAR_TYPE , this . defaultCalendarType ) ; } else if ( this . isWeekdayElement ( ) ) { return CalendarText . ISO_CALENDAR_TYPE ; } else { return this . defaultCalendarType ; } }
<p>Obtains the effective calendar type. </p>

@param   attributes  format attributes
@return  effective calendar type