super(namespaceURI, elementLocalName);
}
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
SubjectLocality subjectLocality = (SubjectLocality) samlObject;
if (subjectLocality.getAddress() != null) {
domElement.setAttributeNS(null, SubjectLocality.ADDRESS_ATTRIB_NAME, subjectLocality.getAddress());
}
if (subjectLocality.getDNSName() != null) {
domElement.setAttributeNS(null, SubjectLocality.DNS_NAME_ATTRIB_NAME, subjectLocality.getDNSName());
}
}