|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.util.XMLAttributeHelper
public final class XMLAttributeHelper
Helper methods for working with global attributes from the XML namespace. These are namely:
Method Summary | |
---|---|
static void |
addXMLBase(XMLObject xmlObject,
String base)
Adds a xml:base attribute to the given XML object. |
static void |
addXMLId(XMLObject xmlObject,
String id)
Adds a xml:id attribute to the given XML object. |
static void |
addXMLLang(XMLObject xmlObject,
String lang)
Adds a xml:lang attribute to the given XML object. |
static void |
addXMLSpace(XMLObject xmlObject,
SpaceBearing.XMLSpaceEnum space)
Adds a xml:space attribute to the given XML object. |
static String |
getXMLBase(XMLObject xmlObject)
Gets the xml:base attribute from a given XML object. |
static String |
getXMLId(XMLObject xmlObject)
Gets the xml:id attribute from a given XML object. |
static String |
getXMLLang(XMLObject xmlObject)
Gets the xml:lang attribute from a given XML object. |
static SpaceBearing.XMLSpaceEnum |
getXMLSpace(XMLObject xmlObject)
Gets the xml:space attribute from a given XML object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addXMLId(XMLObject xmlObject, String id)
xml:id
attribute to the given XML object.
xmlObject
- the XML object to which to add the attributeid
- the Id valuepublic static String getXMLId(XMLObject xmlObject)
xml:id
attribute from a given XML object.
xmlObject
- the XML object from which to extract the attribute
public static void addXMLLang(XMLObject xmlObject, String lang)
xml:lang
attribute to the given XML object.
xmlObject
- the XML object to which to add the attributelang
- the lang valuepublic static String getXMLLang(XMLObject xmlObject)
xml:lang
attribute from a given XML object.
xmlObject
- the XML object from which to extract the attribute
public static void addXMLBase(XMLObject xmlObject, String base)
xml:base
attribute to the given XML object.
xmlObject
- the XML object to which to add the attributebase
- the base valuepublic static String getXMLBase(XMLObject xmlObject)
xml:base
attribute from a given XML object.
xmlObject
- the XML object from which to extract the attribute
public static void addXMLSpace(XMLObject xmlObject, SpaceBearing.XMLSpaceEnum space)
xml:space
attribute to the given XML object.
xmlObject
- the XML object to which to add the attributespace
- the space valuepublic static SpaceBearing.XMLSpaceEnum getXMLSpace(XMLObject xmlObject)
xml:space
attribute from a given XML object.
xmlObject
- the XML object from which to extract the attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |