@Override public void internalStartElement(String elemName, HashMap mapMandatory, HashMap mapAllowed) throws SAXException { String attrName; if (mapAllowed.isEmpty()) { return; } attrName = (String) mapMandatory.get("NAME"); // NOI18N if (attrName == null) { attrName = (String) mapMandatory.get("name"); // NOI18N } if (attrName == null) { return; } Iterator it = mapAllowed.entrySet().iterator(); while (it.hasNext()) { Map.Entry pair = (Map.Entry) it.next(); if (XMLMapAttr.Attr.isValid((String) pair.getKey()) != -1) { XMLMapAttr.Attr attr = XMLMapAttr.createAttributeAndDecode( (String) pair.getKey(), (String) pair.getValue() ); setAttr(fileName.toString(), attrName, attr); } } }
/** Reads external. */ public void readExternal(ObjectInput oi) throws IOException, ClassNotFoundException { for (;;) { String file = (String) oi.readObject(); if (file == null) { break; } for (;;) { String attr = (String) oi.readObject(); if (attr == null) { break; } Object o = oi.readObject(); // backward compatibility if (o instanceof java.rmi.MarshalledObject) { o = ((java.rmi.MarshalledObject) o).get(); o = new NbMarshalledObject(o); } // end of backward compatibility if (o instanceof NbMarshalledObject) { setAttr(file, attr, o); } } } } }
t.setAttr (arr[1], attrName, null); // clear the attribute }else { if ((objType = XMLMapAttr.Attr.distinguishObject (value)) == XMLMapAttr.Attr.isValid("SERIALVALUE") ) { // NOI18N t.setAttr (arr[1], attrName, value);//change value instead of marshall t.setAttr (arr[1], attrName, XMLMapAttr.createAttribute (objType,value.toString()) );
t.setAttr (arr[1], attrName, null); // clear the attribute }else { if ((objType = XMLMapAttr.Attr.distinguishObject (value)) == XMLMapAttr.Attr.isValid("SERIALVALUE") ) { // NOI18N t.setAttr (arr[1], attrName, value);//change value instead of marshall t.setAttr (arr[1], attrName, XMLMapAttr.createAttribute (objType,value.toString()) );
/** Reads external. */ public void readExternal (ObjectInput oi) throws IOException, ClassNotFoundException { for (;;) { String file = (String)oi.readObject (); if (file == null) break; for (;;) { String attr = (String)oi.readObject (); if (attr == null) break; Object o = oi.readObject (); // backward compatibility if (o instanceof java.rmi.MarshalledObject) { o = ((java.rmi.MarshalledObject)o).get (); o = new NbMarshalledObject (o); } // end of backward compatibility if (o instanceof NbMarshalledObject) { setAttr (file, attr, o); } } } }
/** Reads external. */ public void readExternal (ObjectInput oi) throws IOException, ClassNotFoundException { for (;;) { String file = (String)oi.readObject (); if (file == null) break; for (;;) { String attr = (String)oi.readObject (); if (attr == null) break; Object o = oi.readObject (); // backward compatibility if (o instanceof java.rmi.MarshalledObject) { o = ((java.rmi.MarshalledObject)o).get (); o = new NbMarshalledObject (o); } // end of backward compatibility if (o instanceof NbMarshalledObject) { setAttr (file, attr, o); } } } }
/** Sets an marshaled attribute to the table. */ final void setMarshalledAttr ( String fileName, String attrName, NbMarshalledObject obj ) { setAttr (fileName, attrName, obj); }
/** Sets an marshaled attribute to the table. */ final void setMarshalledAttr ( String fileName, String attrName, NbMarshalledObject obj ) { setAttr (fileName, attrName, obj); }
/** Sets an marshaled attribute to the table. */ final void setMarshalledAttr(String fileName, String attrName, NbMarshalledObject obj) { setAttr(fileName, attrName, obj); }