Class PropertySchema
java.lang.Object
org.opencastproject.assetmanager.api.query.PropertySchema
The schema class helps to build type safe and easy to use property schemas.
It makes code using properties more readable and reliable.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPropertySchema(AQueryBuilder q, String namespace) Create a new property schema. -
Method Summary
Modifier and TypeMethodDescriptionGet a target to select all properties of the schema's namespace.protected PropertyField<Boolean> booleanProp(String name) Create a property field for Booleans.protected PropertyField<Date> Create a property field for Dates.Get a predicate that matches if a property of the schema's namespace exists.protected PropertyField<Long> Create a property field for Longs.Get the namespace of the schema.protected <A> PropertyField<A> prop(Value.ValueType<A> ev, String name) Generic property field constructor.protected PropertyField<String> stringProp(String name) Create a property field for Strings.protected PropertyField<Version> versionProp(String name) Create a property field for Versions.
-
Field Details
-
q
-
namespace
-
-
Constructor Details
-
PropertySchema
Create a new property schema.- Parameters:
q- a query buildernamespace-
-
-
Method Details
-
namespace
Get the namespace of the schema. -
hasPropertiesOfNamespace
Get a predicate that matches if a property of the schema's namespace exists. -
allProperties
Get a target to select all properties of the schema's namespace. -
prop
Generic property field constructor. -
stringProp
Create a property field for Strings. -
longProp
Create a property field for Longs. -
booleanProp
Create a property field for Booleans. -
dateProp
Create a property field for Dates. -
versionProp
Create a property field for Versions.
-