Skip to content

getter methods for GsaEntry object generated from XML not returning correct value #11

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1.initialize a new GsaEntry, set its Id, and add a TWO GsaContents 
entry.addGsaContent("updateMethod", "append");
entry.addGsaContent("newLines", newLines);

2.generate xml from the entry and save to file -- entry.generate(xmlWriter,
extProfile)

3.use the generated XML to construct a GsaEntry
ParseSource source = new ParseSource(new FileInputStream(xmlFile));

GsaEntry entryFromXml = GsaEntry.readEntry(source, GsaEntry.class, new
ExtensionProfile());

4. System.out.println(entryFromXml.getAllGsaContents().size());

What is the expected output? What do you see instead?
Expected = 2
Actual = 0

What version of the product are you using? On what operating system?
I am using 6.2 gdata api on a windows xp environment

Please provide any additional information below.
I am not sure if this is a bug or a correct behavior. 

if it is the correct behavior, how can one get GsaContents from GsaEntry
objects parsed from xml

thanks, 
abel

Original issue reported on code.google.com by geta...@gmail.com on 19 May 2010 at 7:44

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions