/** * parsed an attribute of an element * * @param the element name * @param the attribute name * @param the attribute value * @return true if the attribute was processed */ protected boolean setAttributeValue( XMLElement element, XMLElement attribute, String value) { PrincipalNameDescriptor principal = (PrincipalNameDescriptor) getDescriptor(); if (attribute.getQName().equals(RuntimeTagNames.CLASS_NAME)) { principal.setClassName(value); return true; } return false; }
/** * parsed an attribute of an element * * @param the element name * @param the attribute name * @param the attribute value * @return true if the attribute was processed */ protected boolean setAttributeValue( XMLElement element, XMLElement attribute, String value) { PrincipalNameDescriptor principal = (PrincipalNameDescriptor) getDescriptor(); if (attribute.getQName().equals(RuntimeTagNames.CLASS_NAME)) { principal.setClassName(value); return true; } return false; }
/** * receives notiification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { PrincipalNameDescriptor principal = (PrincipalNameDescriptor) getDescriptor(); if (RuntimeTagNames.PRINCIPAL_NAME.equals(element.getQName())) { principal.setName(value); Object rootDesc = getParentNode().getParentNode().getDescriptor(); if (rootDesc instanceof RootDeploymentDescriptor) { principal.setClassLoader(((RootDeploymentDescriptor)rootDesc).getClassLoader()); } } else super.setElementValue(element, value); }
/** * receives notiification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { PrincipalNameDescriptor principal = (PrincipalNameDescriptor) getDescriptor(); if (RuntimeTagNames.PRINCIPAL_NAME.equals(element.getQName())) { principal.setName(value); Object rootDesc = getParentNode().getParentNode().getDescriptor(); if (rootDesc instanceof RootDeploymentDescriptor) { principal.setClassLoader(((RootDeploymentDescriptor)rootDesc).getClassLoader()); } } else super.setElementValue(element, value); }