Beispiel #1
0
  protected <T extends AttrDesc> void addAttrDescNoNS(T attrDesc) // NoNS no namespace
      {
    if (attrDescNoNSMap == null) this.attrDescNoNSMap = new MapLight<String, AttrDesc>(3);

    AttrDesc old = attrDescNoNSMap.put(attrDesc.getName(), attrDesc);
    if (old != null)
      throw new ItsNatDroidException(
          "Internal Error, duplicated attribute in this class or element: "
              + getClassOrDOMElemName()
              + " "
              + attrDesc.getName());
  }
Beispiel #2
0
 @SuppressWarnings("unchecked")
 protected <TclassDesc extends ClassDesc, TattrTarget, TattrContext extends AttrContext>
     AttrDesc<TclassDesc, TattrTarget, TattrContext> getAttrDescNoNS(String name) {
   if (attrDescNoNSMap == null) return null;
   return attrDescNoNSMap.get(name);
 }