public class ResourceTypeDescriptor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceTypeDescriptor.Property |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
label
Name.
|
java.util.List<ResourceTypeDescriptor.Property> |
properties
User defined extra properties for this resource type.
|
java.util.Map<java.lang.String,java.lang.String> |
templates
Templates keyed by language tags.
A template uses properties names as variables.Example: This template uses the property WhiteBoard having the value ${WhiteBoard} and the property Seats having the value ${Seats}. |
Constructor and Description |
---|
ResourceTypeDescriptor() |
Modifier and Type | Method and Description |
---|---|
static ResourceTypeDescriptor |
create(java.lang.String label,
ResourceTypeDescriptor.Property... props) |
ResourceTypeDescriptor.Property |
property(java.lang.String id) |
public java.lang.String label
public java.util.List<ResourceTypeDescriptor.Property> properties
public java.util.Map<java.lang.String,java.lang.String> templates
properties
names as variables.Locale.toLanguageTag()
public ResourceTypeDescriptor.Property property(java.lang.String id)
public static ResourceTypeDescriptor create(java.lang.String label, ResourceTypeDescriptor.Property... props)
Copyright © 2021. All Rights Reserved.