Class AbstractSchemaElement

    • Field Detail

      • description

        private String description
        Description.
      • extensions

        private Extensions extensions
        Extensions.
    • Constructor Detail

      • AbstractSchemaElement

        public AbstractSchemaElement()
    • Method Detail

      • getDescription

        public String getDescription()
        Returns the description.
        Returns:
        description
      • setDescription

        public void setDescription​(String s)
        Sets the description.
        Parameters:
        s - description
      • getExtensions

        public Extensions getExtensions()
        Returns the extensions.
        Returns:
        extensions
      • setExtensions

        public void setExtensions​(Extensions e)
        Sets the extensions.
        Parameters:
        e - extensions
      • containsBooleanExtension

        public static <T extends AbstractSchemaElement> boolean containsBooleanExtension​(T schemaElement,
                                                                                         String extensionName)
        Returns whether the supplied schema element has an extension name with a value of 'true'.
        Type Parameters:
        T - type of schema element
        Parameters:
        schemaElement - to inspect
        extensionName - to read boolean from
        Returns:
        whether syntax has this boolean extension
      • hashCode

        public abstract int hashCode()
        Overrides:
        hashCode in class Object