public class ComponentMetadata extends Object
| Constructor and Description |
|---|
ComponentMetadata() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUrl()
Gets the baseUrl of the web component, which is the path to the WebComponent file.
|
List<String> |
getBehaviors()
Gets the list of behaviors a webcomponent can have.
|
String |
getDescription()
Gets the public description of the webcomponent, that can be used to
generate the corresponding Javadoc at the Java class.
|
List<ComponentEventData> |
getEvents()
Gets the list of events triggered by the webcomponent, that can be
intercepted at the server side by the corresponding Java class.
|
List<ComponentFunctionData> |
getMethods()
Gets the list of exposed methods of the webcomponent, that can be
called from the corresponding Java class.
|
List<String> |
getMixins()
Gets the mixins of this web component.
|
String |
getName()
Gets the name of the ES6 class of the webcomponent, which is used to
create the corresponding Java class.
|
String |
getParentTagName()
Gets parent element tag name or
null, if no parents present. |
List<ComponentPropertyData> |
getProperties()
Gets the
List of properties exposed by the webcomponent. |
List<String> |
getSlots()
Gets the slots of this web component.
|
String |
getTag()
Gets the tag name used by the webcomponent.
|
Map<String,List<String>> |
getVariants()
Gets theme variants for the component.
|
String |
getVersion()
Gets the version of the webcomponent.
|
void |
setBaseUrl(String baseUrl)
Sets the baseUrl of the web component, which is the path to the WebComponent file.
|
void |
setBehaviors(List<String> behaviors)
Sets the list of behaviors a webcomponent can have.
|
void |
setDescription(String description)
Sets the public description of the webcomponent, that can be used to
generate the corresponding Javadoc at the Java class.
|
void |
setEvents(List<ComponentEventData> events)
Sets the list of events triggered by the webcomponent, that can be
intercepted at the server side by the corresponding Java class.
|
void |
setMethods(List<ComponentFunctionData> methods)
Sets the list of exposed methods of the webcomponent, that can be
called from the corresponding Java class.
|
void |
setMixins(List<String> mixins)
Sets the mixins for this web component.
|
void |
setName(String name)
Sets the name of the ES6 class of the webcomponent, which is used to
create the corresponding Java class.
|
void |
setParentTagName(String parentTagName)
Sets parent element tag name, that is used to determine inheritance relations.
|
void |
setProperties(List<ComponentPropertyData> properties)
Sets the
List of properties exposed by the webcomponent. |
void |
setSlots(List<String> slots)
Sets the slots for this web component.
|
void |
setTag(String tag)
Sets the tag name used by the webcomponent.
|
void |
setVariants(Map<String,List<String>> variants)
Sets theme variants for the component.
|
void |
setVersion(String version)
Sets the version of the webcomponent.
|
public String getName()
public void setName(String name)
name - The name of the of the webcomponent.public String getTag()
public void setTag(String tag)
tag - The tag name of the webcomponent.public List<ComponentPropertyData> getProperties()
List of properties exposed by the webcomponent. Each
individual property is represented by the ComponentPropertyData
object.public void setProperties(List<ComponentPropertyData> properties)
List of properties exposed by the webcomponent. Each
individual property is represented by the ComponentPropertyData
object.properties - The list of exposed properties.public List<String> getBehaviors()
HasComponents interface.public void setBehaviors(List<String> behaviors)
HasComponents interface.behaviors - The list of behaviors of the webcomponent.public String getVersion()
public void setVersion(String version)
version - The version of the webcomponent.public String getDescription()
public void setDescription(String description)
description - The class-level description of the webcomponent.public String getParentTagName()
null, if no parents present.null, if no parents present.public void setParentTagName(String parentTagName)
parentTagName - parent element tag namepublic List<ComponentFunctionData> getMethods()
ComponentFunctionData object.public void setMethods(List<ComponentFunctionData> methods)
ComponentFunctionData object.methods - The list of exposed methods.public List<ComponentEventData> getEvents()
ComponentEventData object.public void setEvents(List<ComponentEventData> events)
ComponentEventData object.events - The list of events.public String getBaseUrl()
E.g. "paper-input/paper-input.html"
public void setBaseUrl(String baseUrl)
E.g. "paper-input/paper-input.html"
baseUrl - the base url to setpublic List<String> getSlots()
Note that the empty string stands for the default slot that has no name. An empty list means that there are no slots.
public void setSlots(List<String> slots)
Note that the empty string stands for the default slot that has no name.
slots - list of the slot namespublic List<String> getMixins()
public void setMixins(List<String> mixins)
mixins - a list of mixin identifiers declared for this web componentpublic Map<String,List<String>> getVariants()
Copyright © 2000–2019 Vaadin Ltd. All rights reserved.