super();
}
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
AttributeSelectorType attributeSelectorType = (AttributeSelectorType) xmlObject;
if(!DatatypeHelper.isEmpty(attributeSelectorType.getDataType())){
domElement.setAttribute(AttributeSelectorType.DATA_TYPE_ATTRIB_NAME,
attributeSelectorType.getDataType());
}
if(!DatatypeHelper.isEmpty(attributeSelectorType.getRequestContextPath())){
domElement.setAttribute(AttributeSelectorType.REQUEST_CONTEXT_PATH_ATTRIB_NAME,
attributeSelectorType.getRequestContextPath());
}
if(attributeSelectorType.getMustBePresentXSBoolean() != null){
domElement.setAttribute(AttributeDesignatorType.MUST_BE_PRESENT_ATTRIB_NAME,
Boolean.toString(attributeSelectorType.getMustBePresentXSBoolean().getValue()));
}
if(!attributeSelectorType.getMustBePresent()){
domElement.setAttribute(AttributeDesignatorType.MUST_BE_PRESENT_ATTRIB_NAME,
Boolean.toString(attributeSelectorType.getMustBePresent()));
}
}