/** * Returns the parameter value for the Mode.<p> * * @return the parameter value for the Mode */ public String getParamMode() { if (m_mode == null) { return null; } return m_mode.getMode(); }
/** * Returns the parameter value for the Mode.<p> * * @return the parameter value for the Mode */ public String getParamMode() { if (m_mode == null) { return null; } return m_mode.getMode(); }
/** * Parses an string into an element of this enumeration.<p> * * @param value the mode to parse * * @return the enumeration element * * @throws CmsIllegalArgumentException if the given value could not be matched against an * element of this type. */ public static CmsDiffViewMode valueOf(String value) throws CmsIllegalArgumentException { if (value == null) { return null; } Iterator<CmsDiffViewMode> iter = VALUES.iterator(); while (iter.hasNext()) { CmsDiffViewMode target = iter.next(); if (value.equals(target.getMode())) { return target; } } throw new CmsIllegalArgumentException( org.opencms.db.Messages.get().container( org.opencms.db.Messages.ERR_MODE_ENUM_PARSE_2, value, CmsDiffViewMode.class.getName())); }
/** * Parses an string into an element of this enumeration. * <p> * * @param value the mode to parse * * @return the enumeration element * * @throws CmsIllegalArgumentException if the given value could not be matched against an * element of this type. */ public static CmsDiffViewMode valueOf(String value) throws CmsIllegalArgumentException { if (value == null) { return null; } Iterator iter = VALUES.iterator(); while (iter.hasNext()) { CmsDiffViewMode target = (CmsDiffViewMode)iter.next(); if (value.equals(target.getMode())) { return target; } } throw new CmsIllegalArgumentException(org.opencms.db.Messages.get().container( org.opencms.db.Messages.ERR_MODE_ENUM_PARSE_2, value, CmsDiffViewMode.class.getName())); }