public class CmsXmlDisplayFormatterValue extends A_CmsXmlValueTextBase
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SEPARATOR
The value separator string.
|
m_stringValuem_defaultValue, m_document, m_element, m_locale, m_maxOccurs, m_minOccurs, m_nameXSI_NAMESPACE, XSI_NAMESPACE_ATTRIBUTE_NO_SCHEMA_LOCATION| Constructor and Description |
|---|
CmsXmlDisplayFormatterValue()
Creates a new, empty schema type descriptor of type "OpenCmsDisplayFormatter".
|
CmsXmlDisplayFormatterValue(I_CmsXmlDocument document,
org.dom4j.Element element,
java.util.Locale locale,
I_CmsXmlSchemaType type)
Creates a new XML content value of type "OpenCmsDisplayFormatter".
|
CmsXmlDisplayFormatterValue(java.lang.String name,
java.lang.String minOccurs,
java.lang.String maxOccurs)
Creates a new schema type descriptor for the type "OpenCmsDisplayFormatter".
|
| Modifier and Type | Method and Description |
|---|---|
I_CmsXmlContentValue |
createValue(I_CmsXmlDocument document,
org.dom4j.Element element,
java.util.Locale locale)
Creates a XML content value object for this type.
|
java.lang.String |
getDisplayType()
Returns the display resource type name.
|
CmsUUID |
getFormatterId()
Returns the formatter config id.
|
java.lang.String |
getSchemaDefinition()
Returns a String representation of the XML definition for this schema type.
|
java.lang.String |
getTypeName()
Returns the schema type name.
|
I_CmsXmlSchemaType |
newInstance(java.lang.String name,
java.lang.String minOccurs,
java.lang.String maxOccurs)
Creates a new instance of this XML schema type initialized with the given values.
|
getPlainText, getStringValue, setStringValueappendXmlSchema, compareTo, equals, generateXml, getChoiceMaxOccurs, getContentDefinition, getDefault, getDefault, getDocument, getElement, getId, getIndex, getKey, getLocale, getMaxIndex, getMaxOccurs, getMinOccurs, getName, getPath, getRelationType, getXmlIndex, hasError, hashCode, isChoiceOption, isChoiceType, isSearchable, isSimpleType, moveDown, moveUp, moveValue, readSchemaDefinition, setContentDefinition, setDefault, setKeyPrefix, toString, validateValuepublic static final java.lang.String SEPARATOR
public CmsXmlDisplayFormatterValue()
public CmsXmlDisplayFormatterValue(I_CmsXmlDocument document, org.dom4j.Element element, java.util.Locale locale, I_CmsXmlSchemaType type)
document - the XML content instance this value belongs toelement - the XML element that contains this valuelocale - the locale this value is created fortype - the type instance to create the value forpublic CmsXmlDisplayFormatterValue(java.lang.String name, java.lang.String minOccurs, java.lang.String maxOccurs)
name - the name of the XML node containing the value according to the XML schemaminOccurs - minimum number of occurrences of this type according to the XML schemamaxOccurs - maximum number of occurrences of this type according to the XML schemapublic I_CmsXmlContentValue createValue(I_CmsXmlDocument document, org.dom4j.Element element, java.util.Locale locale)
I_CmsXmlSchemaTypedocument - the XML content instance this value belongs toelement - the XML element to create the value fromlocale - the locale to create the value forI_CmsXmlSchemaType.createValue(org.opencms.xml.I_CmsXmlDocument, org.dom4j.Element, java.util.Locale)public java.lang.String getDisplayType()
public CmsUUID getFormatterId()
public java.lang.String getSchemaDefinition()
I_CmsXmlSchemaTypeI_CmsXmlSchemaType.getSchemaDefinition()public java.lang.String getTypeName()
I_CmsXmlSchemaType
By convention, a XML schema type name has the form
"OpenCms + ${name}". Examples are
"OpenCmsString" or "OpenCmsBoolean".
The schema type name is fixed by the implementation.
I_CmsXmlSchemaType.getTypeName()public I_CmsXmlSchemaType newInstance(java.lang.String name, java.lang.String minOccurs, java.lang.String maxOccurs)
I_CmsXmlSchemaTypename - the name to use in the xml documentminOccurs - minimum number of occurrencesmaxOccurs - maximum number of occurrencesI_CmsXmlSchemaType.newInstance(java.lang.String, java.lang.String, java.lang.String)