Home | History | Annotate | Download | only in parser

Lines Matching refs:TagAttribute

100   public static Tag createTag(HTML.Element element, List<TagAttribute> attributes) {
109 List<TagAttribute> attributes, String originalHtmlBeforeAttributes,
120 List<TagAttribute> attributes) {
129 List<TagAttribute> attributes, String originalHtmlBeforeAttributes,
152 public static TagAttribute createTagAttribute(HTML.Attribute attr, String value) {
157 * @see HtmlDocument.TagAttribute#TagAttribute(HTML.Attribute, String, String)
159 public static TagAttribute createTagAttribute(HTML.Attribute attr,
162 return new TagAttribute(attr, value, originalHtml);
507 // List of TagAttribute objects. This may be null.
508 private List<TagAttribute> attributes;
518 * @param attributes list of TagAttribute objects, may be null
535 private Tag(HTML.Element element, List<TagAttribute> attributes,
559 addAttribute(new TagAttribute(attr, value, null));
563 public void addAttribute(TagAttribute attr) {
566 attributes = new ArrayList<TagAttribute>();
572 public List<TagAttribute> getAttributes() {
576 /** Finds and returns a TagAttribute, or null if not found */
577 public TagAttribute getAttribute(HTML.Attribute attr) {
579 for (TagAttribute attribute : attributes) {
589 * Finds and returns list of TagAttribute of given attribute
592 public List<TagAttribute> getAttributes(HTML.Attribute attr) {
593 List<TagAttribute> result = Lists.newArrayList();
595 for (TagAttribute attribute : attributes) {
611 for (TagAttribute attr : attributes) {
659 for (TagAttribute attr : attributes) {
763 * TagAttribute represents an attribute in a HTML tag.
765 public static class TagAttribute {
778 private TagAttribute(HTML.Attribute attribute, String value, String originalHtml) {
1246 List<TagAttribute> attributes = tag.getAttributes();
1251 for (TagAttribute a : attributes) {