/** * Constructor defaulting the initial namespace to "everything" * * @param name local name for this repository */ public BasicPolicy(String name) { _pxml = new PolicyXML(); try { if (null != name) _pxml.setLocalName(name); _pxml.setVersion(POLICY_VERSION); _pxml.addNamespace(ContentName.fromNative("/")); } catch (MalformedContentNameStringException e) { } }
public void setLocalName(String localName) throws MalformedContentNameStringException { if (null == _pxml.getLocalName()) { _pxml.setLocalName(localName); } }