Class ObjectFactory
java.lang.Object
org.openwms.core.preferences.impl.file.ObjectFactory
An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java
representation of XML content can consist of schema derived interfaces and classes representing the binding of schema type definitions,
element declarations and model groups. Factory methods for each of these are provided in this class.
- Author:
- Heiko Scherrer
-
Constructor Summary
ConstructorDescriptionCreate a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.openwms.core.domain.preferences. -
Method Summary
Modifier and TypeMethodDescriptionstatic Class[]
allTypes()
Create an instance ofApplicationPreference
.Create an instance ofModulePreference
.Create an instance ofPreferences
.Create an instance ofRolePreference
.Create an instance ofUserPreference
.static UserPreference
createUserPreference
(String username, String key, String description) Create an instance ofUserPreference
.
-
Constructor Details
-
ObjectFactory
public ObjectFactory()Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.openwms.core.domain.preferences.
-
-
Method Details
-
allTypes
-
createModulePreference
Create an instance ofModulePreference
.- Returns:
- an instance of
ModulePreference
-
createPreferences
Create an instance ofPreferences
.- Returns:
- an instance of
Preferences
-
createApplicationPreference
Create an instance ofApplicationPreference
.- Returns:
- an instance of
ApplicationPreference
-
createUserPreference
Create an instance ofUserPreference
.- Returns:
- an instance of
UserPreference
-
createUserPreference
Create an instance ofUserPreference
.- Parameters:
username
- The name of the Userkey
- The key of the preferencedescription
- The description text- Returns:
- an instance of
UserPreference
-
createRolePreference
Create an instance ofRolePreference
.- Returns:
- an instance of
RolePreference
-