public final class XMLAttributeSupport extends Object
Modifier and Type | Method and Description |
---|---|
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. |
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 attributepublic 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 attributepublic 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 attributepublic 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 attributeCopyright © 2016 JBoss by Red Hat. All rights reserved.