public class Definition extends BasicAttributeContext
| Modifier and Type | Field and Description |
|---|---|
protected String |
inherit
Extends attribute value.
|
protected String |
name
Definition name.
|
attributes, cascadedAttributes, preparer, templateAttribute| Constructor and Description |
|---|
Definition()
Constructor.
|
Definition(Definition definition)
Copy Constructor.
|
Definition(String name,
Attribute templateAttribute,
Map<String,Attribute> attributes)
Constructor.
|
Definition(String name,
String template,
Map<String,Attribute> attributes)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(Attribute attribute)
Deprecated.
|
boolean |
equals(Object obj) |
Map<String,Attribute> |
getAttributes()
Deprecated.
|
String |
getExtends()
Get extends.
|
String |
getName()
Access method for the name property.
|
String |
getRole()
Deprecated.
|
String |
getTemplate()
Deprecated.
|
boolean |
hasAttributeValue(String key)
Deprecated.
Check if the
AttributeContext.getAttribute(String)
returns null. |
int |
hashCode() |
boolean |
isExtending()
Get extends flag.
|
void |
put(String name,
Object content)
|
void |
put(String name,
Object content,
Attribute.AttributeType type,
String role)
|
void |
put(String name,
Object content,
String role)
|
void |
setExtends(String name)
Set extends.
|
void |
setName(String aName)
Sets the value of the name property.
|
void |
setRole(String role)
Deprecated.
|
void |
setTemplate(String template)
Deprecated.
|
String |
toString()
Returns a description of the attributes.
|
addAll, addMissing, clear, getAttribute, getAttributeNames, getCascadedAttribute, getCascadedAttributeNames, getLocalAttribute, getLocalAttributeNames, getPreparer, getTemplateAttribute, inherit, inherit, inheritCascadedAttributes, putAttribute, putAttribute, setPreparer, setTemplateAttributeprotected String inherit
protected String name
public Definition()
public Definition(Definition definition)
definition - The definition to copy.public Definition(String name, String template, Map<String,Attribute> attributes)
Definition(String, Attribute, Map).name - The name of the definition.template - The template of the definition.attributes - The attribute map of the definition.public String getName()
public void setName(String aName)
aName - the new value of the name property@Deprecated public String getTemplate()
BasicAttributeContext.getTemplateAttribute().@Deprecated public void setTemplate(String template)
BasicAttributeContext.getTemplateAttribute().template - the new value of the path property@Deprecated public String getRole()
BasicAttributeContext.getTemplateAttribute().@Deprecated public void setRole(String role)
BasicAttributeContext.getTemplateAttribute().role - the new value of the role property@Deprecated public Map<String,Attribute> getAttributes()
AttributeContext.getLocalAttributeNames() and
AttributeContext.getCascadedAttributeNames().@Deprecated public void addAttribute(Attribute attribute)
BasicAttributeContext.putAttribute(String, Attribute).attribute - Attribute to add.@Deprecated public boolean hasAttributeValue(String key)
AttributeContext.getAttribute(String)
returns null.key attribute has been set.key - The attribute key to check.true if the attribute has a value.@Deprecated public void put(String name, Object content)
AttributeContext.putAttribute(String, Attribute)
or AttributeContext.putAttribute(String, Attribute, boolean).name - Attribute namecontent - Attribute value@Deprecated public void put(String name, Object content, String role)
AttributeContext.putAttribute(String, Attribute)
or AttributeContext.putAttribute(String, Attribute, boolean).name - Attribute namecontent - Attribute valuerole - Determine if content is used by get tag. If user is in role, content is used.@Deprecated public void put(String name, Object content, Attribute.AttributeType type, String role)
AttributeContext.putAttribute(String, Attribute)
or AttributeContext.putAttribute(String, Attribute, boolean).name - Attribute namecontent - Attribute valuetype - attribute type: template, string, definitionrole - Determine if content is used by get tag. If user is in role, content is used.public void setExtends(String name)
name - Name of the extended definition.public String getExtends()
public boolean equals(Object obj)
equals in class BasicAttributeContextpublic int hashCode()
hashCode in class BasicAttributeContextpublic boolean isExtending()
true if this definition extends another.Copyright © 2025. All rights reserved.