Uses of Class
org.opencms.xml.CmsXmlContentDefinition
Packages that use CmsXmlContentDefinition
Package
Description
Contains server side classes for the XML content editor.
Utility classes to be used for JSP pages.
Contains functions to monitor the OpenCms system status.
The package contains the Solr search integration.
Basic XML functionality and utilities used by OpenCms to maintain XML documents and content.
Contains functions for the ADE main pages, commonly called "Container Pages" in OpenCms.
Contains functions for structured content storage using XML, commonly called "XML content" in OpenCms.
Contains functions for unstructured content storage using XML, commonly called "XML pages" in OpenCms.
Contains the basic XML content type definitions, used for XML content and XML pages.
-
Uses of CmsXmlContentDefinition in org.opencms.ade.contenteditor
Methods in org.opencms.ade.contenteditor with parameters of type CmsXmlContentDefinitionModifier and TypeMethodDescriptionstatic List<CmsTabInfo> CmsContentTypeVisitor.collectTabInfos(CmsObject cms, CmsXmlContentDefinition definition, CmsMessages messages) Returns the tab informations for the given content definition.static voidCmsAccessRestrictionInfo.collectTypesByPath(CmsXmlContentDefinition definition, String path, Map<String, I_CmsXmlSchemaType> typesByPath) Helper method for collecting all nested schema types of a content definition in a map.static CmsWidgetUtil.WidgetInfoCmsWidgetUtil.collectWidgetInfo(CmsObject cms, CmsXmlContentDefinition rootContentDefinition, String path, CmsMessages messages, Locale overrideLocale) Collects widget information for a given content definition and content value path.static CmsAccessRestrictionInfoCmsAccessRestrictionInfo.getRestrictionInfo(CmsObject cms, CmsXmlContentDefinition contentDef) Gets the restriction info for the current user and content definition.static StringCmsContentService.getTypeUri(CmsXmlContentDefinition xmlContentDefinition) Returns the type URI.booleanCmsContentTypeVisitor.isEditorCompatible(CmsXmlContentDefinition xmlContentDefinition) Checks if the content type widgets are compatible with the new content editor.CmsContentService.readTypes(CmsXmlContentDefinition xmlContentDefinition, Locale locale) Reads the types from the given content definition and adds the to the map of already registered types if necessary.voidCmsContentTypeVisitor.visitTypes(CmsXmlContentDefinition xmlContentDefinition, Locale messageLocale) Visits all types within the XML content definition. -
Uses of CmsXmlContentDefinition in org.opencms.jsp.util
Methods in org.opencms.jsp.util that return CmsXmlContentDefinitionModifier and TypeMethodDescriptionCmsSchemaInfo.Field.getContentDefinition()Gets the content definition.Constructors in org.opencms.jsp.util with parameters of type CmsXmlContentDefinitionModifierConstructorDescriptionCmsSchemaInfo(CmsObject cms, CmsXmlContentDefinition contentDef) Creates a new instance.Field(CmsXmlContentDefinition contentDef) Creates a new instance for the root level of a schema. -
Uses of CmsXmlContentDefinition in org.opencms.monitor
Methods in org.opencms.monitor that return CmsXmlContentDefinitionModifier and TypeMethodDescriptionCmsMemoryMonitor.getCachedContentDefinition(String key) Returns the xml content definition cached with the given cache key ornullif not found.Methods in org.opencms.monitor with parameters of type CmsXmlContentDefinitionModifier and TypeMethodDescriptionvoidCmsMemoryMonitor.cacheContentDefinition(String key, CmsXmlContentDefinition contentDefinition) Caches the given content definition under the given cache key. -
Uses of CmsXmlContentDefinition in org.opencms.search.solr
Methods in org.opencms.search.solr with parameters of type CmsXmlContentDefinitionModifier and TypeMethodDescriptionstatic voidCmsSolrDocumentXmlContent.collectSchemaXpathsForSimpleValues(CmsObject cms, CmsXmlContentDefinition def, String path, Set<String> result) Collects a list of all possible XPaths for a content definition. -
Uses of CmsXmlContentDefinition in org.opencms.xml
Methods in org.opencms.xml that return CmsXmlContentDefinitionModifier and TypeMethodDescriptionCmsXmlEntityResolver.getCachedContentDefinition(String systemId) Looks up the given XML content definition system id in the internal content definition cache.I_CmsXmlDocument.getContentDefinition()Returns the content definition object used for this XML document.static CmsXmlContentDefinitionCmsXmlContentDefinition.getContentDefinitionForResource(CmsObject cms, CmsResource resource) Factory method that returns the XML content definition instance for a given resource.static CmsXmlContentDefinitionCmsXmlContentDefinition.getContentDefinitionForType(CmsObject cms, String typeName) Reads the content definition which is configured for a resource type.static CmsXmlContentDefinitionCmsXmlContentDefinition.unmarshal(byte[] xmlData, String schemaLocation, EntityResolver resolver) Factory method to unmarshal (read) a XML content definition instance from a byte array that contains XML data.static CmsXmlContentDefinitionCmsXmlContentDefinition.unmarshal(String xmlData, String schemaLocation, EntityResolver resolver) Factory method to unmarshal (read) a XML content definition instance from a String that contains XML data.static CmsXmlContentDefinitionCmsXmlContentDefinition.unmarshal(String schemaLocation, EntityResolver resolver) Factory method to unmarshal (read) a XML content definition instance from a given XML schema location.static CmsXmlContentDefinitionFactory method to unmarshal (read) a XML content definition instance from a XML document.static CmsXmlContentDefinitionFactory method to unmarshal (read) a XML content definition instance from the OpenCms VFS resource name.static CmsXmlContentDefinitionCmsXmlContentDefinition.unmarshal(InputSource source, String schemaLocation, EntityResolver resolver) Factory method to unmarshal (read) a XML content definition instance from a XML InputSource.Methods in org.opencms.xml that return types with arguments of type CmsXmlContentDefinitionModifier and TypeMethodDescriptionCmsXmlContentDefinition.getIncludes()Returns the set of nested (included) XML content definitions.Methods in org.opencms.xml with parameters of type CmsXmlContentDefinitionModifier and TypeMethodDescriptionvoidCmsXmlContentDefinition.addInclude(CmsXmlContentDefinition nestedSchema) Adds a nested (included) XML content definition.voidCmsXmlEntityResolver.cacheContentDefinition(String systemId, CmsXmlContentDefinition contentDefinition) Caches an XML content definition based on the given system id and the online / offline status of this entity resolver instance.protected abstract voidA_CmsXmlDocument.initDocument(org.dom4j.Document document, String encoding, CmsXmlContentDefinition contentDefinition) Initializes an XML document based on the provided document, encoding and content definition.Method parameters in org.opencms.xml with type arguments of type CmsXmlContentDefinitionModifier and TypeMethodDescriptionCmsXmlContentTypeManager.getContentType(org.dom4j.Element typeElement, Set<CmsXmlContentDefinition> nestedDefinitions) Generates an initialized instance of a XML content type definition from the given XML schema element.protected static org.opencms.xml.CmsXmlComplexTypeSequenceCmsXmlContentDefinition.validateComplexTypeSequence(org.dom4j.Element element, Set<CmsXmlContentDefinition> includes) Validates the given element as a complex type sequence.Constructors in org.opencms.xml with parameters of type CmsXmlContentDefinitionModifierConstructorDescriptionConstructs a comparator for paths that fit for the provided content definition. -
Uses of CmsXmlContentDefinition in org.opencms.xml.containerpage
Methods in org.opencms.xml.containerpage with parameters of type CmsXmlContentDefinitionModifier and TypeMethodDescriptionstatic CmsXmlContainerPageCmsXmlContainerPageFactory.createDocument(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new instance of a container page based on the given content definition, that will have one language node for the given locale all initialized with default values.static CmsXmlGroupContainerCmsXmlGroupContainerFactory.createDocument(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new instance of a group container based on the given content definition, that will have one language node for the given locale all initialized with default values.protected voidCmsXmlContainerPage.initDocument(org.dom4j.Document document, String encoding, CmsXmlContentDefinition definition) protected voidCmsXmlContainerPage.initDocument(CmsObject cms, org.dom4j.Document document, String encoding, CmsXmlContentDefinition definition) protected voidCmsXmlGroupContainer.initDocument(org.dom4j.Document document, String encoding, CmsXmlContentDefinition definition) Constructors in org.opencms.xml.containerpage with parameters of type CmsXmlContentDefinitionModifierConstructorDescriptionprotectedCmsXmlContainerPage(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new container page based on the given content definition, that will have one language node for the given locale all initialized with default values.protectedCmsXmlGroupContainer(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new container page based on the given content definition, that will have one language node for the given locale all initialized with default values. -
Uses of CmsXmlContentDefinition in org.opencms.xml.content
Fields in org.opencms.xml.content declared as CmsXmlContentDefinitionModifier and TypeFieldDescriptionprotected CmsXmlContentDefinitionCmsXmlContent.m_contentDefinitionThe XML content definition object (i.e.Methods in org.opencms.xml.content that return CmsXmlContentDefinitionModifier and TypeMethodDescriptionCmsXmlContent.getContentDefinition()protected CmsXmlContentDefinitionCmsXmlContent.getContentDefinition(EntityResolver resolver) Returns the content definition object for this xml content object.Methods in org.opencms.xml.content with parameters of type CmsXmlContentDefinitionModifier and TypeMethodDescriptionprotected voidCmsXmlContent.addBookmarkForElement(org.dom4j.Element element, Locale locale, org.dom4j.Element parent, String parentPath, CmsXmlContentDefinition parentDef) Creates a new bookmark for the given element.protected voidCmsDefaultXmlContentHandler.addCheckRule(CmsXmlContentDefinition contentDefinition, String elementName, String invalidate, String type) Adds a check rule for a specified element.protected voidCmsDefaultXmlContentHandler.addConfiguration(CmsXmlContentDefinition contentDefinition, String elementName, String configurationValue) Adds a configuration value for an element widget.protected voidCmsDefaultXmlContentHandler.addDefault(CmsXmlContentDefinition contentDefinition, String elementName, String defaultValue, String resolveMacrosValue) Adds a default value for an element.protected voidCmsDefaultXmlContentHandler.addDefaultCheckRules(CmsXmlContentDefinition rootContentDefinition, I_CmsXmlSchemaType schemaType, String elementPath) Adds all needed default check rules recursively for the given schema type.protected voidCmsDefaultXmlContentHandler.addDisplayType(CmsXmlContentDefinition contentDefinition, String elementName, I_CmsXmlContentHandler.DisplayType displayType) Adds the given element to the compact view set.protected voidCmsDefaultXmlContentHandler.addMapping(CmsXmlContentDefinition contentDefinition, String elementName, String mapping, String useDefault) Adds an element mapping.protected voidCmsDefaultXmlContentHandler.addNestedFormatter(String elementName, CmsXmlContentDefinition contentDefinition) Adds a nested formatter element.protected voidCmsDefaultXmlContentHandler.addSearchField(CmsXmlContentDefinition contentDefinition, CmsSearchField field) Deprecated.protected voidCmsDefaultXmlContentHandler.addSearchField(CmsXmlContentDefinition contentDefinition, CmsSearchField field, I_CmsXmlContentHandler.MappingType type) Adds a Solr field for an element.protected voidCmsDefaultXmlContentHandler.addSearchSetting(CmsXmlContentDefinition contentDefinition, String elementName, I_CmsXmlContentValue.CmsSearchContentConfig value) Adds a search setting for an element.protected voidCmsDefaultXmlContentHandler.addSimpleSearchSetting(CmsXmlContentDefinition contentDef, String name, String value) Adds search settings as defined by 'simple' syntax in fields.protected voidCmsDefaultXmlContentHandler.addValidationRule(CmsXmlContentDefinition contentDefinition, String elementName, String regex, String message, boolean isWarning) Adds a validation rule for a specified element.protected voidCmsDefaultXmlContentHandler.addWidget(CmsXmlContentDefinition contentDefinition, String elementName, String name) Adds a GUI widget for a specified element.static CmsXmlContentCmsXmlContentFactory.createDocument(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new instance of an XML content based on the given content definiton, that will have one language node for the given locale all initialized with default values.protected voidCmsDefaultXmlContentHandler.initDefaultValues(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the default values for this content handler.protected voidCmsXmlContent.initDocument(org.dom4j.Document document, String encoding, CmsXmlContentDefinition definition) protected voidCmsXmlContent.initDocument(CmsObject cms, org.dom4j.Document document, String encoding, CmsXmlContentDefinition definition) Initializes an XML document based on the provided document, encoding and content definition.protected voidCmsDefaultXmlContentHandler.initField(org.dom4j.Element elem, CmsXmlContentDefinition contentDef) Processes a single field definition.protected voidCmsDefaultXmlContentHandler.initFields(org.dom4j.Element parent, CmsXmlContentDefinition contentDef) Processes all field declarations in the schema.protected voidCmsDefaultXmlContentHandler.initFormatters(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the formatters for this content handler.protected voidCmsDefaultXmlContentHandler.initHeadIncludes(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the head includes for this content handler.voidCmsDefaultXmlContentHandler.initialize(org.dom4j.Element appInfoElement, CmsXmlContentDefinition contentDefinition) voidI_CmsXmlContentHandler.initialize(org.dom4j.Element appInfoElement, CmsXmlContentDefinition contentDefinition) Initializes this content handler for the given XML content definition by analyzing the "appinfo" node.protected voidCmsDefaultXmlContentHandler.initLayouts(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the layout for this content handler.protected voidCmsDefaultXmlContentHandler.initMappings(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the element mappings for this content handler.protected voidCmsDefaultXmlContentHandler.initModelFolder(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the folder containing the model file(s) for this content handler.protected voidCmsDefaultXmlContentHandler.initNestedFormatters(org.dom4j.Element element, CmsXmlContentDefinition contentDefinition) Initializes the nested formatter fields.protected voidCmsDefaultXmlContentHandler.initPreview(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the preview location for this content handler.protected voidCmsDefaultXmlContentHandler.initRelations(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the relation configuration for this content handler.protected voidCmsDefaultXmlContentHandler.initResourceBundle(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition, boolean single) Initializes the resource bundle to use for localized messages in this content handler.protected voidCmsDefaultXmlContentHandler.initSearchSettings(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the search exclusions values for this content handler.protected voidCmsDefaultXmlContentHandler.initSettings(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the element settings for this content handler.protected voidCmsDefaultXmlContentHandler.initSynchronizations(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the locale synchronizations elements.protected voidCmsDefaultXmlContentHandler.initTabs(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the tabs for this content handler.protected voidCmsDefaultXmlContentHandler.initTemplates(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the forbidden template contexts.protected voidCmsDefaultXmlContentHandler.initValidationRules(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the validation rules this content handler.protected voidCmsDefaultXmlContentHandler.initVisibilities(org.dom4j.Element root, CmsXmlContentDefinition contentDefinition) Initializes the content visibility settings.protected voidCmsXmlContent.processSchemaNode(org.dom4j.Element root, String rootPath, Locale locale, CmsXmlContentDefinition definition) Processes a document node and extracts the values of the node according to the provided XML content definition.CmsXmlContentPropertyHelper.readProperties(CmsXmlContent xmlContent, Locale locale, org.dom4j.Element element, String elemPath, CmsXmlContentDefinition elemDef) Reads the properties from property-enabled xml content values.static org.dom4j.DocumentCmsVersionTransformer.transformDocumentToCurrentVersion(CmsObject cms, org.dom4j.Document document, CmsXmlContentDefinition contentDefinition) Converts an XML content document to the current version using the version transformation XSLT file which is configured in the schema.Constructors in org.opencms.xml.content with parameters of type CmsXmlContentDefinitionModifierConstructorDescriptionprotectedCmsXmlContent(CmsObject cms, Locale locale, String encoding, CmsXmlContentDefinition contentDefinition) Create a new XML content based on the given content definiton, that will have one language node for the given locale all initialized with default values. -
Uses of CmsXmlContentDefinition in org.opencms.xml.page
Methods in org.opencms.xml.page that return CmsXmlContentDefinitionMethods in org.opencms.xml.page with parameters of type CmsXmlContentDefinitionModifier and TypeMethodDescriptionprotected voidCmsXmlPage.initDocument(org.dom4j.Document document, String encoding, CmsXmlContentDefinition definition) -
Uses of CmsXmlContentDefinition in org.opencms.xml.types
Methods in org.opencms.xml.types that return CmsXmlContentDefinitionModifier and TypeMethodDescriptionA_CmsXmlContentValue.getContentDefinition()I_CmsXmlSchemaType.getContentDefinition()Returns the content definition this schema type belongs to.CmsXmlNestedContentDefinition.getNestedContentDefinition()Returns the nested content definition.Methods in org.opencms.xml.types with parameters of type CmsXmlContentDefinitionModifier and TypeMethodDescriptionvoidA_CmsXmlContentValue.setContentDefinition(CmsXmlContentDefinition contentDefinition) voidI_CmsXmlSchemaType.setContentDefinition(CmsXmlContentDefinition contentDefinition) Sets the content definition this schema type belongs to.Constructors in org.opencms.xml.types with parameters of type CmsXmlContentDefinitionModifierConstructorDescriptionCmsXmlNestedContentDefinition(CmsXmlContentDefinition contentDefinition, String name, String minOccurs, String maxOccurs) Creates a new nested content definition.CmsXmlNestedContentDefinition(CmsXmlContentDefinition contentDefinition, I_CmsXmlDocument document, org.dom4j.Element element, Locale locale, I_CmsXmlSchemaType type) Creates a new XML content value for the nested content definition. -
Uses of CmsXmlContentDefinition in org.opencms.xml.xml2json
Methods in org.opencms.xml.xml2json that return CmsXmlContentDefinitionModifier and TypeMethodDescriptionCmsXmlContentTree.Node.getContentDefinition()Gets the content definition.Methods in org.opencms.xml.xml2json with parameters of type CmsXmlContentDefinitionModifier and TypeMethodDescriptionCmsXmlContentTree.createNode(org.dom4j.Element elem, CmsXmlContentDefinition contentDef) Creates a node for the given content definition and DOM element.Constructors in org.opencms.xml.xml2json with parameters of type CmsXmlContentDefinitionModifierConstructorDescriptionNode(CmsXmlContentTree.NodeType type, I_CmsXmlContentValue value, CmsXmlContentDefinition contentDef, org.dom4j.Element elem, List<CmsXmlContentTree.Field> fields) Creates a new instance.