/** * Returns the provided Millimeter value as Inch value * * @param value the value to set the attribute value to (in Millimeter) */ private static String getInchValue(double value) { // build the string for mm final String mmValueString = value + Unit.MILLIMETER.abbr(); // convert the length to inch final String inchValueString = Length.mapToUnit(mmValueString, Unit.INCH); // return the value return inchValueString; }
/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype timeOrDateTime} data type * * @param timeOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype timeOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar timeOrDateTime) { return (Time.isValid(timeOrDateTime) || DateTime.isValid(timeOrDateTime)); } }
/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype dateOrDateTime} data type * * @param dateOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype dateOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar dateOrDateTime) { return (Date.isValid(dateOrDateTime) || DateTime.isValid(dateOrDateTime)); } }
/** * Returns a TextEncoding instance representing the specified String value * * @param stringValue * a String value * @return return a TextEncoding instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid TextEncoding */ public static TextEncoding valueOf(String stringValue) throws IllegalArgumentException { return new TextEncoding(stringValue); }
/** * Returns a LanguageCode instance representing the specified String value * * @param stringValue * a String value * @return return a LanguageCode instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid LanguageCode */ public static LanguageCode valueOf(String stringValue) throws IllegalArgumentException { return new LanguageCode(stringValue); }
/** * Returns an IDREF instance representing the specified String value * * @param stringValue a String value * @throws IllegalArgumentException if the given argument is not a valid IDREF * @return return an IDREF instance representing stringValue */ public static IDREF valueOf(String stringValue) throws IllegalArgumentException { return new IDREF(stringValue); }
/** * Returns a ClipShape instance representing the specified String value * * @param stringValue * a String value * @return return a ClipShape instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid ClipShape */ public static ClipShape valueOf(String stringValue) throws IllegalArgumentException { return new ClipShape(stringValue); }
/** * Returns a CellAddress instance representing the specified String value * * @param stringValue * a String value * @return return a CellAddress instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid CellAddress */ public static CellAddress valueOf(String stringValue) throws IllegalArgumentException { return new CellAddress(stringValue); }
/** *enum to String, gets the name of this enum constant as a string. * *@param aEnum * the constant of TargetFrameName *@return return the name of TargetFrameName */ public static String toString(TargetFrameName aEnum) { return aEnum.toString(); }
/** * Returns StyleName which is represented by the specified String value * * @param styleName a String value which can construct an StyleName * @return a String representation of an StyleName instance constructed by * styleName * @throws IllegalArgumentException If the given StyleName is null or not valid. */ public static StyleName valueOf(String styleName) throws IllegalArgumentException { return new StyleName(styleName); }
/** *enum to String, gets the name of this enum constant as a string. * *@param aEnum the constant of ValueType *@return return the name of ValueType */ public static String toString(ValueType aEnum) { return aEnum.toString(); }
/** * set String value for URIorSafeCURIE Object * * @param curie * the SafeCURIE value which is set to URIorSafeCURIE Object */ public void setSafeCURIE(String curie) { mValue = new SafeCURIE(curie); }
/** * Returns a NCName instance representing the specified String value * * @param stringValue * a String value * @return return a NCName instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid NCName */ public static NCName valueOf(String stringValue) throws IllegalArgumentException { return new NCName(stringValue); }
/** * Returns a Language instance representing the specified String value * * @param stringValue * a String value * @return return a Language instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid Language */ public static Language valueOf(String stringValue) throws IllegalArgumentException { return new Language(stringValue); }
/** * Returns a CURIE instance representing the specified String value * * @param stringValue * a String value * @return return a CURIE instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid CURIE */ public static CURIE valueOf(String stringValue) throws IllegalArgumentException { return new CURIE(stringValue); }
/** * Returns the provided Millimeter value as Inch value * * @param value the value to set the attribute value to (in Millimeter) */ private static String getInchValue(double value) { // build the string for mm final String mmValueString = value + Unit.MILLIMETER.abbr(); // convert the length to inch final String inchValueString = Length.mapToUnit(mmValueString, Unit.INCH); // return the value return inchValueString; }
/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype timeOrDateTime} data type * * @param timeOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype timeOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar timeOrDateTime) { return (Time.isValid(timeOrDateTime) || DateTime.isValid(timeOrDateTime)); } }
/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype dateOrDateTime} data type * * @param dateOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype dateOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar dateOrDateTime) { return (Date.isValid(dateOrDateTime) || DateTime.isValid(dateOrDateTime)); } }
/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype timeOrDateTime} data type * * @param timeOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype timeOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar timeOrDateTime) { return (Time.isValid(timeOrDateTime) || DateTime.isValid(timeOrDateTime)); } }
/** * check if the specified XMLGregorianCalendar instance is a valid * {@odf.datatype dateOrDateTime} data type * * @param dateOrDateTime * the value to be tested * @return true if the value of argument is valid for {@odf.datatype dateOrDateTime} data * type false otherwise */ public static boolean isValid(XMLGregorianCalendar dateOrDateTime) { return (Date.isValid(dateOrDateTime) || DateTime.isValid(dateOrDateTime)); } }