1 13 package com.tonbeller.wcf.utils; 14 15 import org.w3c.dom.Document ; 16 import org.w3c.dom.Element ; 17 18 28 public class XoplonNS { 29 30 private static final String NAMESPACE_URI = "urn:xoplon:core"; 31 private static final String NAMESPACE_PREFIX = "xc"; 32 33 private XoplonNS() {} 34 35 36 public static Element createElement(Document factory, String name) { 37 return factory.createElement(name); 38 } 39 40 41 public static void setAttribute(Element elem, String name, String value) { 42 elem.setAttribute(name, value); 43 } 44 45 46 public static void setNameSpaceAttribute(Element elem) { 47 } 48 49 50 public static void removeAttribute(Element elem, String name) { 51 DomUtils.removeAttribute(elem, name); 52 } 53 54 55 public static String getAttribute(Element elem, String name) { 56 return elem.getAttribute(name); 57 } 58 59 public static boolean isXoplonNS(Element elem) { 60 return true; 61 } 62 63 64 public static String getLocalName(Element elem) { 65 return elem.getTagName(); 66 } 67 68 } 69 | Popular Tags |