Esempio n. 1
0
        public String getOnlineResource()
        {
            AttributesOnlyXMLEventParser parser = (AttributesOnlyXMLEventParser)
                                                  (this.getField("OnlineResource") != null ? this.getField("OnlineResource")
            : this.getField("onlineResource"));

            return(parser != null ? (String)parser.getField("href") : null);
        }
Esempio n. 2
0
        public List <String> getPostAddresses()
        {
            if (this.posts == null)
            {
                return(null);
            }

            List <String> addresses = new ArrayList <String>(this.posts.size());

            foreach (AttributesOnlyXMLEventParser parser in this.posts)
            {
                if (parser != null)
                {
                    AttributesOnlyXMLEventParser onlineResource =
                        (AttributesOnlyXMLEventParser)parser.getField("OnlineResource");
                    if (onlineResource != null)
                    {
                        addresses.add((String)onlineResource.getField("href"));
                    }
                }
            }

            return(addresses);
        }