Package net.sf.basedb.core
Class NameableUtil
- java.lang.Object
-
- net.sf.basedb.core.NameableUtil
-
-
Constructor Summary
Constructors Constructor Description NameableUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
setDescription(NameableData nameableData, String description)
Set the description of aNameableData
object.static void
setName(NameableData nameableData, String name)
Set the name of aNameableData
object.
-
-
-
Method Detail
-
setName
public static void setName(NameableData nameableData, String name) throws InvalidDataException
Set the name of aNameableData
object.- Parameters:
nameableData
- A NameableData object to set a name on.name
- The name to be set.- Throws:
InvalidDataException
- If the name is null or is longer thanNameable.MAX_NAME_LENGTH
constant
-
setDescription
public static void setDescription(NameableData nameableData, String description) throws InvalidDataException
Set the description of aNameableData
object.- Parameters:
nameableData
- A NameableData to set description on.description
- The description to be set.- Throws:
InvalidDataException
- If the description is longer thanNameable.MAX_DESCRIPTION_LENGTH
constant
-
-