T
- the type of values for this recordpublic interface Record<T>
Record
is a key-value immutable object understood by the HTL runtime, used for abstracting complex objects like Sightly
templates (declared with the data-sly-template
block element) or objects that need to be translated from Java to JavaScript
and back.Modifier and Type | Method and Description |
---|---|
T |
getProperty(java.lang.String name)
Gets the value of a specified property.
|
java.util.Set<java.lang.String> |
getPropertyNames()
Gets the set of names for this record's properties.
|
T getProperty(java.lang.String name)
name
- the name of the propertynull
if this record does not have the specified propertyjava.util.Set<java.lang.String> getPropertyNames()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"