public class TagDefinitionImpl extends Object implements TagDefinition
Constructor and Description |
---|
TagDefinitionImpl(String name,
boolean namingContainer,
boolean shouldSerialize,
boolean shouldSerializeTextContent,
TagHandler tagHandler) |
Modifier and Type | Method and Description |
---|---|
ActionDefinition |
getActionDefinition()
Get the action definition
|
AttributeDefinition |
getAttribute(String name)
Get the attribute definition for the attribute
|
Iterable<String> |
getAttributeNames()
Get the names of the attributes supported by this tag.
|
AttributeDefinition |
getAttributeToValidate()
Returns the attribute definition of the attribute that should be validated
|
Iterable<EventDefinition> |
getEvents()
Get the event definitions for this tag
|
java.util.Set<String> |
getFacetNames()
Get the names of the facets this tag supports
|
MethodDefinition |
getMethod(String name)
Get the method definition for an attribute
|
Iterable<String> |
getMethodNames()
Get the names of the attributes that accept method expressions
|
String |
getName()
The name of the tag (XML local name)
|
TagHandler |
getTagHandler()
The tag handler for this tag
|
boolean |
isNamingContainer()
Naming container tags prevent components that may have child IDs that may conflict with siblings of the current
node.
|
boolean |
shouldSerialize()
Allows for nodes to not be sent to the web view.
|
boolean |
shouldSerializeTextContent()
Allows for tags to have their textContent sent to the web view.
|
public TagDefinitionImpl(String name, boolean namingContainer, boolean shouldSerialize, boolean shouldSerializeTextContent, TagHandler tagHandler)
public boolean shouldSerialize()
TagDefinition
shouldSerialize
in interface TagDefinition
public boolean isNamingContainer()
TagDefinition
isNamingContainer
in interface TagDefinition
public String getName()
TagDefinition
getName
in interface TagDefinition
public AttributeDefinition getAttribute(String name)
TagDefinition
getAttribute
in interface TagDefinition
name
- the name of the attributepublic MethodDefinition getMethod(String name)
TagDefinition
getMethod
in interface TagDefinition
name
- the name of the attribute that accepts a method expressionpublic Iterable<String> getAttributeNames()
TagDefinition
getAttributeNames
in interface TagDefinition
public Iterable<String> getMethodNames()
TagDefinition
getMethodNames
in interface TagDefinition
public java.util.Set<String> getFacetNames()
TagDefinition
getFacetNames
in interface TagDefinition
public TagHandler getTagHandler()
TagDefinition
getTagHandler
in interface TagDefinition
public boolean shouldSerializeTextContent()
TagDefinition
shouldSerializeTextContent
in interface TagDefinition
public Iterable<EventDefinition> getEvents()
TagDefinition
getEvents
in interface TagDefinition
public ActionDefinition getActionDefinition()
TagDefinition
getActionDefinition
in interface TagDefinition
public AttributeDefinition getAttributeToValidate()
TagDefinition
getAttributeToValidate
in interface TagDefinition