Class CMDTDElementDeclaration

    • Constructor Detail

      • CMDTDElementDeclaration

        public CMDTDElementDeclaration​(CMDTDDocument document,
                                       int index)
    • Method Detail

      • getPrefix

        public String getPrefix​(String namespaceURI)
        Description copied from interface: CMElementDeclaration
        Returns the xmlns prefix from the given namespace URI and null otherwise.
        Specified by:
        getPrefix in interface CMElementDeclaration
        Parameters:
        namespaceURI - the namespace
        Returns:
        the xmlns prefix from the given namespace URI and null otherwise.
      • getPossibleElements

        public Collection<CMElementDeclaration> getPossibleElements​(DOMElement parentElement,
                                                                    int offset)
        Description copied from interface: CMElementDeclaration
        Returns the possible declared elements at the given offset of the given parent element.
        Specified by:
        getPossibleElements in interface CMElementDeclaration
        Parameters:
        parentElement - the parent element
        offset - the offset
        Returns:
        the possible declared elements at the given offset of the given parent element.
      • findCMAttribute

        public CMAttributeDeclaration findCMAttribute​(String attributeName,
                                                      String namespace)
        Description copied from interface: CMElementDeclaration
        Returns the declared attribute which match the given name and null otherwise.
        Specified by:
        findCMAttribute in interface CMElementDeclaration
        Parameters:
        attributeName - the attribute name.
        namespace - the attribute namespace and null otherwise.
        Returns:
        the declared attribute which match the given name and null otherwise.
      • getDocumentation

        public String getDocumentation​(ISharedSettingsRequest settings)
        Description copied from interface: CMElementDeclaration
        Returns formatted documentation of the declared element, according to settings defined in request.
        Specified by:
        getDocumentation in interface CMElementDeclaration
        Parameters:
        settings - the request containing settings
        Returns:
        formatted documentation of the declared element, according to settings defined in request.
      • getDocumentation

        public String getDocumentation​(String attrName)
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: CMElementDeclaration
        Returns true if the element cannot contains element children or text content and false otherwise.
        Specified by:
        isEmpty in interface CMElementDeclaration
        Returns:
        true if the element cannot contains element children or text content and false otherwise.
      • isNillable

        public boolean isNillable()
        Description copied from interface: CMElementDeclaration
        Returns true if the element can have an explicit null value assigned to it.
        Specified by:
        isNillable in interface CMElementDeclaration
        Returns:
        true if the element can have an explicit null value assigned to it.
      • getIndex

        public int getIndex()
      • isStringType

        public boolean isStringType()
        Description copied from interface: CMElementDeclaration
        Returns true if the element is a string type (ex : xs:string) and false otherwise.
        Specified by:
        isStringType in interface CMElementDeclaration
        Returns:
        true if the element is a string type (ex : xs:string) and false otherwise.
      • isMixedContent

        public boolean isMixedContent()
        Description copied from interface: CMElementDeclaration
        Returns true if the element can contains text and element both and false otherwise.
        Specified by:
        isMixedContent in interface CMElementDeclaration
        Returns:
        true if the element can contains text and element both and false otherwise.
      • isOptional

        public boolean isOptional​(String childElementName)
        Description copied from interface: CMElementDeclaration
        Returns true if the child element name is optional and false otherwise.
        Specified by:
        isOptional in interface CMElementDeclaration
        Returns:
        true if the child element name is optional and false otherwise.