@NotThreadSafe public class MicroAttribute extends Object implements IMicroAttribute
IMicroAttribute interface.| Constructor and Description |
|---|
MicroAttribute(IMicroQName aQName,
String sAttributeValue) |
MicroAttribute(String sAttributeName,
String sAttributeValue) |
MicroAttribute(String sNamespaceURI,
String sAttributeName,
String sAttributeValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
QName |
getAsXMLQName() |
QName |
getAsXMLQName(String sPrefix) |
String |
getAttributeName()
Get the name of the attribute.
|
IMicroQName |
getAttributeQName()
Get the qualified name of the attribute.
|
String |
getAttributeValue() |
MicroAttribute |
getClone() |
String |
getNamespaceURI()
Get the namespace URI of this attribute
|
int |
hashCode() |
boolean |
hasNamespaceURI()
Check if this attribute has a specified namespace URI.
|
boolean |
hasNamespaceURI(String sNamespaceURI)
Check if this attribute has the specified namespace URI.
|
boolean |
hasNoNamespaceURI()
Check if this attribute has no namespace URI.
|
EChange |
setAttributeValue(String sAttributeValue)
Set the value of the attribute.
|
String |
toString() |
public MicroAttribute(@Nonnull @Nonempty String sAttributeName, @Nonnull String sAttributeValue)
public MicroAttribute(@Nullable String sNamespaceURI, @Nonnull @Nonempty String sAttributeName, @Nonnull String sAttributeValue)
public MicroAttribute(@Nonnull IMicroQName aQName, @Nonnull String sAttributeValue)
@Nullable public String getNamespaceURI()
IMicroAttributegetNamespaceURI in interface IMicroAttributenull if this attribute has no namespace URI.public boolean hasNamespaceURI()
IMicroAttributehasNamespaceURI in interface IMicroAttributetrue if this attribute has a specified namespace URI,
false otherwisepublic boolean hasNoNamespaceURI()
IMicroAttributehasNoNamespaceURI in interface IMicroAttributetrue if this attribute has no namespace URI,
false otherwisepublic boolean hasNamespaceURI(@Nullable String sNamespaceURI)
IMicroAttributehasNamespaceURI in interface IMicroAttributesNamespaceURI - The namespace URI to check. May not be null.true if this attribute has the specified namespace
URI, false otherwise@Nonnull public String getAttributeName()
IMicroAttributegetAttributeName in interface IMicroAttributenull.@Nonnull public QName getAsXMLQName()
getAsXMLQName in interface IMicroAttribute@Nonnull public QName getAsXMLQName(@Nonnull String sPrefix)
getAsXMLQName in interface IMicroAttributesPrefix - the namespace prefix to be used in the resulting object. May not be
null but maybe empty.@Nonnull public IMicroQName getAttributeQName()
IMicroAttributegetAttributeQName in interface IMicroAttributenull.@Nonnull public String getAttributeValue()
getAttributeValue in interface IMicroAttributenull.@Nonnull public EChange setAttributeValue(@Nonnull String sAttributeValue)
IMicroAttributesetAttributeValue in interface IMicroAttributesAttributeValue - The new value to be set. May not be null.EChange.@Nonnull public MicroAttribute getClone()
IMicroAttributegetClone in interface ICloneable<IMicroAttribute>getClone in interface IMicroAttributeCopyright © 2014–2015 Philip Helger. All rights reserved.