Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Problem in JAXB

  Asked By: Vivek    Date: Sep 20    Category: Java    Views: 1170

I need to check mandatory/optional elements and attributes in java classes that
are generated by JAXB , according to JAXB specification such as :

" A property is said to have a set value if that value was assigned to it during
unmarshalling or by invoking its mutation method. The value of a property is its
set value, if defined; otherwise, it is the property’s schema specified
default value, if any; otherwise, it is the default initial value for the
property’s base type as it would be assigned for an uninitialized field within
a Java class "

JAXB must to do this check when it wants to marshal java classes to xml file ,
but in practical , it doesnt do it .

if anybody can help me or have any opinion about this problem , please guide me.



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Problem in JAXB Or get search suggestion and latest updates.