public class WorkLoaderUtil extends Object
WorkSource
.Modifier and Type | Method and Description |
---|---|
static <W extends Work> |
createWorkTypeBuilder(WorkFactory<W> workFactory)
Creates the
WorkTypeBuilder to create the expected
WorkType . |
static <W extends Work,WS extends WorkSource<W>> |
loadWorkType(Class<WS> workSourceClass,
OfficeFloorCompiler compiler,
String... propertyNameValues)
Convenience method that loads the
WorkType with the provided
OfficeFloorCompiler . |
static <W extends Work,WS extends WorkSource<W>> |
loadWorkType(Class<WS> workSourceClass,
String... propertyNameValues)
|
static <W extends Work,WS extends WorkSource<W>> |
validateSpecification(Class<WS> workSourceClass,
String... propertyNameLabels)
Validates the
WorkSourceSpecification for the WorkSource . |
static <W extends Work,WS extends WorkSource<W>> |
validateWorkType(WorkTypeBuilder<?> expectedWorkType,
Class<WS> workSourceClass,
OfficeFloorCompiler compiler,
String... propertyNameValues)
Convenience method that validates the
WorkType loaded from the
input WorkSource against the expected WorkType from the
WorkTypeBuilder . |
static <W extends Work,WS extends WorkSource<W>> |
validateWorkType(WorkTypeBuilder<?> expectedWorkType,
Class<WS> workSourceClass,
String... propertyNameValues)
Convenience method that validates the
WorkType loaded from the
input WorkSource against the expected WorkType from the
WorkTypeBuilder . |
public static <W extends Work,WS extends WorkSource<W>> PropertyList validateSpecification(Class<WS> workSourceClass, String... propertyNameLabels)
WorkSourceSpecification
for the WorkSource
.W
- Work
type.WS
- WorkSource
type.workSourceClass
- WorkSource
class.propertyNameLabels
- Listing of name/label pairs for the Property
instances.PropertyList
.public static <W extends Work> WorkTypeBuilder<W> createWorkTypeBuilder(WorkFactory<W> workFactory)
WorkTypeBuilder
to create the expected
WorkType
.W
- Work
type.workFactory
- WorkFactory
for the WorkType
.WorkTypeBuilder
to build the expected WorkType
.public static <W extends Work,WS extends WorkSource<W>> WorkType<W> validateWorkType(WorkTypeBuilder<?> expectedWorkType, Class<WS> workSourceClass, String... propertyNameValues)
WorkType
loaded from the
input WorkSource
against the expected WorkType
from the
WorkTypeBuilder
.W
- Work
type.WS
- WorkSource
type.expectedWorkType
- WorkTypeBuilder
that has had the expected
WorkType
built against it.workSourceClass
- WorkSource
class.propertyNameValues
- Listing of name/value pairs that comprise the properties for
the WorkSource
.WorkType
.public static <W extends Work,WS extends WorkSource<W>> WorkType<W> validateWorkType(WorkTypeBuilder<?> expectedWorkType, Class<WS> workSourceClass, OfficeFloorCompiler compiler, String... propertyNameValues)
WorkType
loaded from the
input WorkSource
against the expected WorkType
from the
WorkTypeBuilder
.W
- Work
type.WS
- WorkSource
type.expectedWorkType
- WorkTypeBuilder
that has had the expected
WorkType
built against it.workSourceClass
- WorkSource
class.compiler
- OfficeFloorCompiler
. May be null
.propertyNameValues
- Listing of name/value pairs that comprise the properties for
the WorkSource
.WorkType
.public static <W extends Work,WS extends WorkSource<W>> WorkType<W> loadWorkType(Class<WS> workSourceClass, String... propertyNameValues)
W
- Work
type.WS
- WorkSource
type.workSourceClass
- WorkSource
class.propertyNameValues
- Listing of name/value pairs that comprise the properties for
the WorkSource
.WorkType
.public static <W extends Work,WS extends WorkSource<W>> WorkType<W> loadWorkType(Class<WS> workSourceClass, OfficeFloorCompiler compiler, String... propertyNameValues)
WorkType
with the provided
OfficeFloorCompiler
.W
- Work
type.WS
- WorkSource
type.workSourceClass
- WorkSource
class.compiler
- OfficeFloorCompiler
.propertyNameValues
- Listing of name/value pairs that comprise the properties for
the WorkSource
.WorkType
.Copyright © 2005–2016. All rights reserved.