@Override public XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs) throws ParseException, IOException { if (namespace.equals(atomPubNs.getUri())) { if (localName.equals("collection")) { Collection collection = new Collection(); addCollection(collection); return collection.new Handler(extProfile, attrs); } } else if (namespace.equals(Namespaces.atom)) { if (localName.equals("title") && !coreVersion.isCompatible(Service.Versions.V1)) { if (title != null) { throw new ParseException( CoreErrorDomain.ERR.duplicateTitle); } TextConstruct.ChildHandlerInfo chi = TextConstruct.getChildHandler(attrs); title = chi.textConstruct; return chi.handler; } } return super.getChildHandler(namespace, localName, attrs); } }
TextConstruct.getChildHandler(attrs); tc.setContent(chi.textConstruct); childHandlerInfo.handler = chi.handler;
TextConstruct.getChildHandler(attrs); tc.setContent(chi.textConstruct); childHandlerInfo.handler = chi.handler;
TextConstruct.getChildHandler(attrs); tc.setContent(chi.textConstruct); childHandlerInfo.handler = chi.handler;
@Override public XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs) throws ParseException, IOException { if (namespace.equals(atomPubNs.getUri())) { if (localName.equals("collection")) { Collection collection = new Collection(); addCollection(collection); return collection.new Handler(extProfile, attrs); } } else if (namespace.equals(Namespaces.atom)) { if (localName.equals("title") && !coreVersion.isCompatible(Service.Versions.V1)) { if (title != null) { throw new ParseException( CoreErrorDomain.ERR.duplicateTitle); } TextConstruct.ChildHandlerInfo chi = TextConstruct.getChildHandler(attrs); title = chi.textConstruct; return chi.handler; } } return super.getChildHandler(namespace, localName, attrs); } }
@Override public XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs) throws ParseException, IOException { if (namespace.equals(Namespaces.atom)) { if (localName.equals("title") && !coreVersion.isCompatible(Service.Versions.V1)) { TextConstruct.ChildHandlerInfo chi = TextConstruct.getChildHandler(attrs); if (title != null) { throw new ParseException( CoreErrorDomain.ERR.duplicateTitle); } title = chi.textConstruct; return chi.handler; } } else if (namespace.equals(atomPubNs.getUri())) { if (localName.equals("accept")) { return new AcceptHandler(); } if (localName.equals("categories")) { Categories newCategories = new Categories(); addCategories(newCategories); return newCategories.new Handler(extProfile, attrs); } } return super.getChildHandler(namespace, localName, attrs); }
@Override public XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs) throws ParseException, IOException { if (namespace.equals(Namespaces.atom)) { if (localName.equals("title") && !coreVersion.isCompatible(Service.Versions.V1)) { TextConstruct.ChildHandlerInfo chi = TextConstruct.getChildHandler(attrs); if (title != null) { throw new ParseException( CoreErrorDomain.ERR.duplicateTitle); } title = chi.textConstruct; return chi.handler; } } else if (namespace.equals(atomPubNs.getUri())) { if (localName.equals("accept")) { return new AcceptHandler(); } if (localName.equals("categories")) { Categories newCategories = new Categories(); addCategories(newCategories); return newCategories.new Handler(extProfile, attrs); } } return super.getChildHandler(namespace, localName, attrs); }
@Override public XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs) throws ParseException, IOException { if (namespace.equals(atomPubNs.getUri())) { if (localName.equals("collection")) { Collection collection = new Collection(); addCollection(collection); return collection.new Handler(extProfile, attrs); } } else if (namespace.equals(Namespaces.atom)) { if (localName.equals("title") && !coreVersion.isCompatible(Service.Versions.V1)) { if (title != null) { throw new ParseException( CoreErrorDomain.ERR.duplicateTitle); } TextConstruct.ChildHandlerInfo chi = TextConstruct.getChildHandler(attrs); title = chi.textConstruct; return chi.handler; } } return super.getChildHandler(namespace, localName, attrs); } }
@Override public XmlParser.ElementHandler getChildHandler(String namespace, String localName, Attributes attrs) throws ParseException, IOException { if (namespace.equals(Namespaces.atom)) { if (localName.equals("title") && !coreVersion.isCompatible(Service.Versions.V1)) { TextConstruct.ChildHandlerInfo chi = TextConstruct.getChildHandler(attrs); if (title != null) { throw new ParseException( CoreErrorDomain.ERR.duplicateTitle); } title = chi.textConstruct; return chi.handler; } } else if (namespace.equals(atomPubNs.getUri())) { if (localName.equals("accept")) { return new AcceptHandler(); } if (localName.equals("categories")) { Categories newCategories = new Categories(); addCategories(newCategories); return newCategories.new Handler(extProfile, attrs); } } return super.getChildHandler(namespace, localName, attrs); }
TextConstruct.getChildHandler(attrs); TextConstruct.getChildHandler(attrs); TextConstruct.getChildHandler(attrs);
TextConstruct.getChildHandler(attrs); TextConstruct.getChildHandler(attrs); TextConstruct.getChildHandler(attrs);
TextConstruct.getChildHandler(attrs); TextConstruct.getChildHandler(attrs); TextConstruct.getChildHandler(attrs);