property « jaxb « Java XML Q&A

Home
Java XML Q&A
1.convert
2.Development
3.document
4.dom
5.dom4j
6.dtd
7.element
8.jaxb
9.jaxp
10.jdom
11.jsoup
12.namespace
13.Node
14.parse
15.parser
16.pdf
17.sax
18.schema
19.stax
20.tag
21.transform
22.Validation
23.xalan
24.xmlbeans
25.xpath
26.xsd
27.xslt
28.xstream
Java XML Q&A » jaxb » property 

1. JAXB - marshal object with XML string property    stackoverflow.com

suppose i have an object with String property that has an XML string. like:

class myObject {
    String xml;

    @XmlElement(name = "xml", type = String.class)
   ...

2. JAXB is throwing an exception saying the property "retainReferenceToInfo" is invalid    stackoverflow.com

Mysteriously, JAXB is throwing a JAXBException that says that some property "retainReferenceToInfo" is invalid. No where in my code does this appear, what's going on?

3. jaxb XmlAccessType: PROPERTY example    stackoverflow.com

I'm trying to use jaxb and want to use the 'XmlAccessType.PROPERTY' to let jaxb use getters/setters rather than variable directly, but get different errors depending on what I try, or the variable isn't ...

4. Marshal a field/property to an xml-element with an additional xml-attribute name=propertyName    stackoverflow.com

I have a java object like:

public class Person {
    private String firstName = "Harry";
    private String lastName = "Hacker";
    private int age ...

5. JAXB and List Property Accesible by Key    stackoverflow.com

Using JAXB how can I unmarshal this document into an object model that will allow me to query username by mobile number?

<Details>
    <Mobile>
      ...

6. jaxb exception management in property setters of unmarshalled class    stackoverflow.com

When I unmarshal an Xml node to a property, the setMyProperty is called. The code of the property setter may raise an exception:what happens in this case? The behaviour that I have ...

7. Grouping properties using JAXB annotations    stackoverflow.com

I have a class Product with the following properties: name, dateCreated, createdByUser, dateModified and modifiedByUser, and I'm using JAXB marshalling. I'd like to have output like this:

<product>
    <name>...</name>
 ...

8. Handling instead of Foo with JAXB    stackoverflow.com

I have XML that looks like this:

 <thing>
    <property key='name' value='Foo' />
 </thing>
I'd like to read that using JAXB. I know that I can do
@XmlRootElement(name="thing")
public class Thing{

   ...

9. Jaxb, Class has two properties of the same name    stackoverflow.com

with jaxb, i try to read an xml file only a few element in xml file are interesting, so i would like to skip many element xml content xml i try to ...

10. @XmlTransient for a javaBean property    stackoverflow.com

I am interested in not marshaling/unmarshaling the principal field of my A object. I have added XmlTransient in different places but it still seem to marshal it. Any ideas? Here is class ...

11. Can JAXB create a 'read only' class property?    stackoverflow.com

Is there a way to have jaxb create only a getter(no setter) for a class property generated from an element tag in the xsd file(i.e. an element of type xs:integer)? How ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.