Information about a dialect, its processors, and its expression
objects.
true if the other object is a dialect and they share the
* same prefix and namespace.
*/
@Override
public boolean equals(Object other) {
if (other instanceof Dialect) {
Dialect o = (Dialect)other;
return prefix.equals(o.prefix) && namespaceUri.equals(o.namespaceUri);
}
return false;
}
/**
* Returns a hashcode based on this dialect's information.
*
* @return Dialect hashcode.
*/
@Override
public int hashCode() {
return prefix.hashCode() * namespaceUri.hashCode();
}
]]>
Common code for Thymeleaf processor and expression objects.
Common data between the 2 Thymeleaf processor types: attribute processors
and element processors.
private String fullname;
/**
* Return the full name of this processor.
*
* @return prefix:name
*/
public String getFullName() {
if (fullname == null) {
fullname = dialect.getPrefix() + ":" + name;
}
return fullname;
}
An attribute processor, includes an extra set of restrictions to
help with deciding where the processor can go and what values it
can take.
A set of restrictions on attribute processor use, used to help the
content assist decide where attribute suggestions should be made.
A list of tags that this processor can or cannot appear in. To
list a tag that it can't appear in, prefix that tag name with a
minus symbol, eg: -head
A list of attributes that must or must not be present in the same
tag as this processor. To list an attribute that must not be
present, prefix that attribute name with a minus symbol, eg: -style
A list of values that this processor can take.
An element processor.
A method in an expression object.
true if both this and the other method share the same
* name.
*/
@Override
public boolean equals(Object other) {
return other instanceof ExpressionObjectMethod && name.equals(((ExpressionObjectMethod)other).name);
}
/**
* Returns a hashcode based on this method data.
*
* @return Method hashcode.
*/
@Override
public int hashCode() {
return name.hashCode();
}
private String fullname;
/**
* Return the full name of this expression object method.
*
* @return #name
*/
public String getFullName() {
if (fullname == null) {
fullname = "#" + name;
}
return fullname;
}
]]>
An object added to the processing context to be used by processors.
Notes to help generate some documentation about a processor.
List of items related to this one, suggesting where else
the user can go to get more information or understanding.
An 'official' document and the section/page within it
to get more information.