Package org.opencms.ade.contenteditor
Class CmsContentTypeVisitor.DisplayTypeEvaluator
- java.lang.Object
-
- org.opencms.ade.contenteditor.CmsContentTypeVisitor.DisplayTypeEvaluator
-
- Enclosing class:
- CmsContentTypeVisitor
protected static class CmsContentTypeVisitor.DisplayTypeEvaluator extends java.lang.Object
Helper class to evaluate the widget display type.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DisplayTypeEvaluator(CmsAttributeConfiguration config, I_CmsXmlContentHandler.DisplayType configuredType, I_CmsXmlContentHandler.DisplayType defaultType, CmsContentTypeVisitor.EvaluationRule rule)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getAttributeName()
Returns the attribute name.protected CmsAttributeConfiguration
getEvaluatedConfiguration(I_CmsXmlContentHandler.DisplayType predecessor, I_CmsXmlContentHandler.DisplayType successor)
Returns the attribute configuration with the evaluated display type.protected I_CmsXmlContentHandler.DisplayType
getProposedType()
Returns the proposed display type.protected void
setAttributeName(java.lang.String attributeName)
Sets the attribute name.
-
-
-
Constructor Detail
-
DisplayTypeEvaluator
protected DisplayTypeEvaluator(CmsAttributeConfiguration config, I_CmsXmlContentHandler.DisplayType configuredType, I_CmsXmlContentHandler.DisplayType defaultType, CmsContentTypeVisitor.EvaluationRule rule)
Constructor.- Parameters:
config
- the attribute type configurationconfiguredType
- the configured display typedefaultType
- the default display typerule
- the applied rule
-
-
Method Detail
-
getAttributeName
protected java.lang.String getAttributeName()
Returns the attribute name.- Returns:
- the attribute name
-
getEvaluatedConfiguration
protected CmsAttributeConfiguration getEvaluatedConfiguration(I_CmsXmlContentHandler.DisplayType predecessor, I_CmsXmlContentHandler.DisplayType successor)
Returns the attribute configuration with the evaluated display type.- Parameters:
predecessor
- the proposed predecessor display typesuccessor
- the proposed successor display type- Returns:
- the attribute configuration
-
getProposedType
protected I_CmsXmlContentHandler.DisplayType getProposedType()
Returns the proposed display type.- Returns:
- the proposed display type
-
setAttributeName
protected void setAttributeName(java.lang.String attributeName)
Sets the attribute name.- Parameters:
attributeName
- the attribute name
-
-