Package org.eclipse.rdf4j.rio.rdfxml
Class Atts
- java.lang.Object
-
- org.eclipse.rdf4j.rio.rdfxml.Atts
-
class Atts extends java.lang.Object
A collection of XML attributes.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Att>
attributes
List containing Att objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAtt(Att att)
Adds an attribute.Att
getAtt(java.lang.String qName)
Gets the attribute with the specified QName.Att
getAtt(java.lang.String namespace, java.lang.String localName)
Gets the attribute with the specified namespace and local name.java.util.Iterator<Att>
iterator()
Get an iterator on the attributes.Att
removeAtt(java.lang.String qName)
Removes the attribute with the specified QName and returns it.Att
removeAtt(java.lang.String namespace, java.lang.String localName)
Removes the attribute with the specified namespace and local name and returns it.int
size()
Returns the number of attributes contained in this object.java.lang.String
toString()
Produces a String-representation of this object.
-
-
-
Field Detail
-
attributes
private final java.util.List<Att> attributes
List containing Att objects.
-
-
Method Detail
-
addAtt
public void addAtt(Att att)
Adds an attribute.
-
iterator
public java.util.Iterator<Att> iterator()
Get an iterator on the attributes.- Returns:
- an Iterator over Att objects.
-
getAtt
public Att getAtt(java.lang.String qName)
Gets the attribute with the specified QName.- Parameters:
qName
- The QName of an attribute.- Returns:
- The attribute with the specified QName, or null if no such attribute could be found.
-
getAtt
public Att getAtt(java.lang.String namespace, java.lang.String localName)
Gets the attribute with the specified namespace and local name.- Parameters:
namespace
- The namespace of an attribute.localName
- The local name of an attribute.- Returns:
- The attribute with the specified namespace and local name, or null if no such attribute could be found.
-
removeAtt
public Att removeAtt(java.lang.String qName)
Removes the attribute with the specified QName and returns it.- Parameters:
qName
- The QName of an attribute.- Returns:
- The removed attribute, or null if no attribute with the specified QName could be found.
-
removeAtt
public Att removeAtt(java.lang.String namespace, java.lang.String localName)
Removes the attribute with the specified namespace and local name and returns it.- Parameters:
namespace
- The namespace of an attribute.localName
- The local name of an attribute.- Returns:
- The removed attribute, or null if no attribute with the specified namespace and local name could be found.
-
size
public int size()
Returns the number of attributes contained in this object.
-
toString
public java.lang.String toString()
Produces a String-representation of this object.- Overrides:
toString
in classjava.lang.Object
-
-