private void stepAlong() { while (++currentindex < methods.length) { if (methods[currentindex].canGet()) break; //if (methodtype == SAXAccessMethodSpec.SET_METHOD && methods[currentindex].setmethod != null) break; } } public boolean valid() {
public InputSource resolveEntity(String publicID, String systemID) { // System.out.println("Helper was asked to resolve public ID "+publicID+" systemID "+systemID); return entityresolverstash == null ? null : entityresolverstash.resolve(publicID); }
public void setEntityResolverStash(EntityResolverStash entityresolverstash) { this.entityresolverstash = entityresolverstash; saxer.setEntityResolverStash(entityresolverstash); }
public boolean canSet(String name) { AccessMethod accessmethod = getAccessMethod(name); return accessmethod == null ? false : accessmethod.canSet(); }
private void assembleGetters() { ArrayList accumulate = new ArrayList(); for (SAMIterator tagget = tagmethods.getGetEnumeration(); tagget.valid(); tagget .next()) { accumulate.add(tagget.get()); } for (SAMIterator tagget = attrmethods.getGetEnumeration(); tagget.valid(); tagget .next()) { accumulate.add(tagget.get()); } if (bodymethod != null) { accumulate.add(allgetters); } allgetters = new SAXAccessMethod[accumulate.size()]; for (int i = 0; i < accumulate.size(); ++i) { allgetters[i] = (SAXAccessMethod) accumulate.get(i); } }
private void absorbSAMSArray(SAXAccessMethodSpec[] setmethods, SAMSList tagMethods, SAMSList attrMethods) { condenseMethods(tagMethods, new ArrayEnumeration(setmethods), SAXAccessMethodSpec.XML_TAG); condenseMethods(attrMethods, new ArrayEnumeration(setmethods), SAXAccessMethodSpec.XML_ATTRIBUTE); if (setmethods != null) { for (int i = 0; i < setmethods.length; ++i) { checkBodyMethodSpec(setmethods[i]); } } }
public Object readObject(Object classorobject, InputStream is) { return readObject(classorobject, is, null); }
public HashSAMIterator() { stepAlong(); } private void stepAlong() {
public SAMIterator getGetEnumeration() { return new HashSAMIterator(); } }
public void setDocumentLocator(Locator l) { saxer.setDocumentLocator(l); }
public String toString(Object towrite) { return toString(towrite, true); }
public void setEntityResolvers(List resolvers) { for (int i = 0; i < resolvers.size(); ++ i) { addEntityResolver((LocalEntityResolver) resolvers.get(i)); } }
public MethodAnalyser getAnalyser(Class clazz) { MethodAnalyser togo = (MethodAnalyser) methodanalysers.get(clazz); if (togo == null) { togo = MethodAnalyser.constructMethodAnalyser(clazz, this); methodanalysers.put(clazz, togo); } return togo; }
public SAXalizerHelper(SAXalizerMappingContext mappingcontext) { saxer = new SAXalizer(mappingcontext); parserstash = SAXParserFactory.newParser(); classnamemanager = mappingcontext.classnamemanager; }
public SAXAccessMethodHash(SAMSList samslist, Class parentclass) { methods = new SAXAccessMethod[samslist.size()]; for (int i = 0; i < samslist.size(); ++i) { this.methods[i] = new SAXAccessMethod(samslist.SAMSAt(i), parentclass); } } /** An iterator for all gettable methods */
public boolean canGet(String name) { AccessMethod accessmethod = getAccessMethod(name); return accessmethod == null ? false : accessmethod.canGet(); }
public Object readObject(Object classorobject, ReadInputStream ris) { Reader r = new RISReader(ris); return readObject(classorobject, null, r); }
/** ******* Begin methods for the DocumentHandler interface ******* */ public InputSource resolveEntity(String publicID, String systemID) { Logger.println("SAXalizer was asked to resolve public ID " + publicID + " systemID " + systemID, Logger.DEBUG_INFORMATIONAL); return entityresolverstash == null ? null : entityresolverstash.resolve(publicID); }
public void next() { stepAlong(); } public SAXAccessMethod get() {
public void loadMapping(InputStream is) { SAXalizerMapperEntry entry = (SAXalizerMapperEntry)readObject(SAXalizerMapperEntry.class, is); mappingcontext.mapper.addEntry(entry); }