Lines Matching defs:namespace
40 * Element in a particular namespace.
105 * Returns the namespace of the Elements of the sub-class.
107 * @return the namespace of the Elements of the sub-class.
120 Document doc, String namespace, String localName
123 if (namespace == null) {
129 result = doc.createElementNS(namespace, localName);
130 result.setAttributeNS(Constants.NamespaceSpecNS, "xmlns", namespace);
132 result = doc.createElementNS(namespace, prefix + ":" + localName);
133 result.setAttributeNS(Constants.NamespaceSpecNS, "xmlns:" + prefix, namespace);
141 * This method creates an Element in a given namespace with a given localname.
143 * a particular prefix is bound to that namespace.
148 * @param namespace
152 public static Element createElementForFamily(Document doc, String namespace, String localName) {
154 String prefix = ElementProxy.getDefaultPrefix(namespace);
156 if (namespace == null) {
160 result = doc.createElementNS(namespace, localName);
161 result.setAttributeNS(Constants.NamespaceSpecNS, "xmlns", namespace);
163 result = doc.createElementNS(namespace, prefix + ":" + localName);
164 result.setAttributeNS(Constants.NamespaceSpecNS, "xmlns:" + prefix, namespace);
230 * @return the base uri of the namespace of this element
336 * @param namespace
341 String localname, String namespace
345 this._constructionElement.getFirstChild(), namespace, localname, 0
354 * @param namespace
359 public byte[] getBytesFromChildElement(String localname, String namespace)
363 this._constructionElement.getFirstChild(), namespace, localname, 0
373 * @param namespace
376 public String getTextFromChildElement(String localname, String namespace) {
379 namespace,
407 * @param namespace
409 * @return the number of elements {namespace}:localname under this element
411 public int length(String namespace, String localname) {
416 && namespace.equals(sibling.getNamespaceURI())) {
428 * // set namespace with ds prefix
468 * @param namespace
472 public static void setDefaultPrefix(String namespace, String prefix)
475 String storedPrefix = prefixMappings.get(namespace);
477 Object exArgs[] = { prefix, namespace, storedPrefix };
483 if (Constants.SignatureSpecNS.equals(namespace)) {
486 if (EncryptionConstants.EncryptionSpecNS.equals(namespace)) {
489 prefixMappings.put(namespace, prefix);
511 * @param namespace
514 public static String getDefaultPrefix(String namespace) {
515 return prefixMappings.get(namespace);