Package org.apache.sling.commons.html
Class AttrValue
- java.lang.Object
-
- org.apache.sling.commons.html.AttrValue
-
- All Implemented Interfaces:
CharSequence
public class AttrValue extends Object implements CharSequence
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charcharAt(int index)StringgetQuoted(char paren)StringgetValue()booleanisEmpty()intlength()StringquoteIfNeeded()voidsetValue(String value)booleanshouldBeQuoted()CharSequencesubSequence(int start, int end)StringtoString()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Constructor Detail
-
AttrValue
public AttrValue()
-
AttrValue
public AttrValue(String value)
-
-
Method Detail
-
setValue
public void setValue(String value)
-
getValue
public String getValue()
-
quoteIfNeeded
public String quoteIfNeeded()
-
getQuoted
public String getQuoted(char paren)
-
shouldBeQuoted
public boolean shouldBeQuoted()
-
isEmpty
public boolean isEmpty()
-
length
public int length()
- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequencein interfaceCharSequence
-
toString
public String toString()
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
-