Class ParsingEntry

    • Field Detail

      • id

        public String id
        The id (unique identifier) of the entry.
      • classes

        public Types.TypeClass[] classes
        The classes associated with the entry.
      • note

        public String note
        The note (short comment) associated with the entry.
      • attributes

        public final Map<Types.TypeAtt,​String> attributes
        The attributes that are associated with the element. Useful for storing all attributes by a simple copy. It is mainly used when dealing with special parameters of constraints (startIndex, circular, ...).
      • flags

        public final Set<Types.TypeFlag> flags
        The flags associated with the entry. Currently, used only for table constraints.
    • Constructor Detail

      • ParsingEntry

        protected ParsingEntry()
      • ParsingEntry

        protected ParsingEntry​(String id)
    • Method Detail

      • getAttributeValue

        public final boolean getAttributeValue​(Types.TypeAtt att,
                                               boolean defaultValue)
        Returns the Boolean value of the specified attribute, if it exists, the specified default value otherwise.
      • getAttributeValue

        public final int getAttributeValue​(Types.TypeAtt att,
                                           int defaultValue)
        Returns the int value of the specified attribute, if it exists, the specified default value otherwise.
      • getAttributeValue

        public final <T extends Enum<T>> T getAttributeValue​(Types.TypeAtt att,
                                                             Class<T> clazz,
                                                             T defaultValue)
        Returns the value of the specified attribute, if it exists, the specified default value otherwise.
      • copyAttributesOf

        public void copyAttributesOf​(Element elt)
        Collect the XMl attributes of the specified element into a map (using an enum type for keys, and String for values).