1 16 19 package org.apache.xml.utils; 20 21 27 public class NSInfo 28 { 29 30 39 public NSInfo(boolean hasProcessedNS, boolean hasXMLNSAttrs) 40 { 41 42 m_hasProcessedNS = hasProcessedNS; 43 m_hasXMLNSAttrs = hasXMLNSAttrs; 44 m_namespace = null; 45 m_ancestorHasXMLNSAttrs = ANCESTORXMLNSUNPROCESSED; 46 } 47 48 50 61 public NSInfo(boolean hasProcessedNS, boolean hasXMLNSAttrs, 62 int ancestorHasXMLNSAttrs) 63 { 64 65 m_hasProcessedNS = hasProcessedNS; 66 m_hasXMLNSAttrs = hasXMLNSAttrs; 67 m_ancestorHasXMLNSAttrs = ancestorHasXMLNSAttrs; 68 m_namespace = null; 69 } 70 71 79 public NSInfo(String namespace, boolean hasXMLNSAttrs) 80 { 81 82 m_hasProcessedNS = true; 83 m_hasXMLNSAttrs = hasXMLNSAttrs; 84 m_namespace = namespace; 85 m_ancestorHasXMLNSAttrs = ANCESTORXMLNSUNPROCESSED; 86 } 87 88 89 public String m_namespace; 90 91 92 public boolean m_hasXMLNSAttrs; 93 94 95 public boolean m_hasProcessedNS; 96 97 98 public int m_ancestorHasXMLNSAttrs; 99 100 101 public static final int ANCESTORXMLNSUNPROCESSED = 0; 102 103 104 public static final int ANCESTORHASXMLNS = 1; 105 106 107 public static final int ANCESTORNOXMLNS = 2; 108 } 109 | Popular Tags |