Class DescendantConstraints


  • public class DescendantConstraints
    extends Object
    Instances of this class specify which tag names (|allowedTags|) are allowed as descendent tags of a particular tag (|tagName|).
    Author:
    nhant01, GeorgeLuo
    • Constructor Detail

      • DescendantConstraints

        public DescendantConstraints​(@Nonnull
                                     String tagName,
                                     @Nonnull
                                     List<String> allowedTags)
        Constructor.
        Parameters:
        tagName - tag name.
        allowedTags - allowed tags.
    • Method Detail

      • getTagName

        public String getTagName()
        Returns the tag name.
        Returns:
        returns the tag name.
      • getAllowedTags

        public List<String> getAllowedTags()
        Returns the allowed tags.
        Returns:
        returns the allowed tags.