You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicabstractclassTag<TextendsTag<T, A>, AextendsEnum<A>> extendsDomContent {
11
+
10
12
protectedStringtagName;
11
13
privateArrayList<Attribute> attributes;
12
14
@@ -90,6 +92,10 @@ public T attr(String attribute, Object value) {
90
92
return (T) this;
91
93
}
92
94
95
+
publicTattr(Aattribute, Objectvalue) {
96
+
returnattr(Attr.getName(attribute), value);
97
+
}
98
+
93
99
/**
94
100
* Adds the specified attribute. If the Tag previously contained an attribute with the same name, the old attribute is replaced by the specified attribute.
95
101
*
@@ -123,6 +129,10 @@ public T attr(String attribute) {
123
129
returnattr(attribute, null);
124
130
}
125
131
132
+
publicTattr(Aattribute) {
133
+
returnattr(attribute, null);
134
+
}
135
+
126
136
/**
127
137
* Call attr-method based on condition
128
138
* {@link #attr(String attribute, Object value)}
@@ -136,6 +146,10 @@ public T condAttr(boolean condition, String attribute, String value) {
0 commit comments