Package com.helger.xml.microdom
Class MicroAttribute
- java.lang.Object
-
- com.helger.xml.microdom.MicroAttribute
-
- All Implemented Interfaces:
com.helger.commons.lang.ICloneable<IMicroAttribute>,IMicroAttribute,Serializable
@NotThreadSafe public class MicroAttribute extends Object implements IMicroAttribute
Default implementation of theIMicroAttributeinterface.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MicroAttribute(IMicroQName aQName, String sAttributeValue)MicroAttribute(String sAttributeName, String sAttributeValue)MicroAttribute(String sNamespaceURI, String sAttributeName, String sAttributeValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)IMicroQNamegetAttributeQName()Get the qualified name of the attribute.StringgetAttributeValue()MicroAttributegetClone()inthashCode()com.helger.commons.state.EChangesetAttributeValue(String sAttributeValue)Set the value of the attribute.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.xml.microdom.IMicroAttribute
getAsXMLQName, getAsXMLQName, getAttributeName, getNamespaceURI, hasNamespaceURI, hasNamespaceURI, hasNoNamespaceURI
-
-
-
-
Constructor Detail
-
MicroAttribute
public MicroAttribute(@Nonnull @Nonempty String sAttributeName, @Nonnull String sAttributeValue)
-
MicroAttribute
public MicroAttribute(@Nullable String sNamespaceURI, @Nonnull @Nonempty String sAttributeName, @Nonnull String sAttributeValue)
-
MicroAttribute
public MicroAttribute(@Nonnull IMicroQName aQName, @Nonnull String sAttributeValue)
-
-
Method Detail
-
getAttributeQName
@Nonnull public IMicroQName getAttributeQName()
Description copied from interface:IMicroAttributeGet the qualified name of the attribute. It never contains XML schema prefixes or the like.- Specified by:
getAttributeQNamein interfaceIMicroAttribute- Returns:
- The qualified name (namespace URI + local name) of the attribute
and never
null.
-
getAttributeValue
@Nonnull public String getAttributeValue()
- Specified by:
getAttributeValuein interfaceIMicroAttribute- Returns:
- The value associated with this attribute. Never
null.
-
setAttributeValue
@Nonnull public com.helger.commons.state.EChange setAttributeValue(@Nonnull String sAttributeValue)
Description copied from interface:IMicroAttributeSet the value of the attribute.- Specified by:
setAttributeValuein interfaceIMicroAttribute- Parameters:
sAttributeValue- The new value to be set. May not benull.- Returns:
EChange.
-
getClone
@Nonnull public MicroAttribute getClone()
Description copied from interface:IMicroAttribute- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<IMicroAttribute>- Specified by:
getClonein interfaceIMicroAttribute
-
-