JAX-B

General Describe the Schema-Compiler.
Describe the Schema-Generator.
Identify the two ways of unmarshalling:
  • Structural
  • Flexible
Describe the function of a Binder. Design Describe the three ways of mapping schemas to the data model of an application.
  • out to in
  • meet in the middle
  • in to out
Identify the disadvantages and advantages of each of these ways.
Identify the advantages and disadvantages of flexible mapping of a xml document.
Identify the advantages and disadvantages of separating the xml processing layer from the business layer.
Identify the advantages of split an XML-Document in multiple messages for further processing.
Binder Identify the abilities of the Binder Component.
Write code that uses the Binder Component to
  • updateXML and updateJAXB
  • marshal and unmarshals both XMLRootElements and other Elements.
  • uses the method getXMLNode and getJAXBNode
JAXBContext Describe the responsibilities of the JAXBContext
Write code that instantiates and uses a JAXBContext correctly.
Identify the fact that a JAXBContext is very expensive to create and therefore thread safe.
JAXBElement<T> Use the methods
  • isNil
  • isGlobalScope
  • isTypeSubstituated
  • getName
  • getScope
  • getDeclaredType
to examine XML content representation at runtime. Marshaller Write code that sets properties on the Marshaller.
Obtain a Marshaller Component.
Write code that marshals POJOS to XML files.
Write code that marshals POJOS to other XML API's.
Use the class JAXBElement to marshal objects which are not top level objects in the JAXBContext. Unmarshaller Obtain a Unmarshaller Component programatically.
Write code to read POJOS from a XML file.
Write code to read POJOS from other XML API's.
Write code to read POJOS from an URL object.
Use the JAXBElement to unmarshal objects from an XML file that uses type substitution.
Unmarshal POJOs that are not XMLRootElements.
Unmarshal only parts of a xml document to POJOS.
Identify the behavior of the Unmarshaller if it uses flexible marshaling.
Validation Use a Schema on both the Marshaller and the Unmarshaller component.
Write code that uses the class ValidationEvent to detect errors and failures.
Write code that defines own ValidationEventHandler classes.
Identify the fact that a FATAL_ERROR should always lead to the cancelation of the processing process.
Write code that uses the Class ValidationEventCollector to collect events.
Callbacks Write code that inherits from the classes Unmarshaller.Listener and Marshaller.Listener
Write code that defines Listeners in the POJO classes that should be represented as XML
ObjectFactory Use the class ObjectFactory to create objects which currently resides in the table of the JAXBContext.
Identify the fact that the class ObjectFactory is created by the Schemacompiler. XML-Schema to Java Identify the two types of scheme bindingconfigurations :
  • inline
  • extern
and their advantages and disadvantages
Identify the four scopes:
  • global
  • scheme
  • element
  • component
on which binding declarations can be declared.
Identify which binding declaration takes precedence if there are defined more than one on different scopes.
Write code that uses the methods of the class javax.xml.bind.DataTypeConverter for converting types with the javaType binding declaration.
Write code that defines own methods for the attributes parse/print of the javaType binding declaration.
use the binding declarations:
  • jaxb:collectionType
  • jaxb:package
  • jaxb:class
  • jaxb:property
  • jaxb:javadoc
  • fixedAttributeAsConstantProperty
  • choiceContentProperty
  • typeSafeEnumBase
  • typeSafeEnumMemberName
  • enableJavaNamingConventions
  • generateElementClass
  • generateValueClass
  • localScoping
  • factoryMethod
  • elementName
  • generateElementProperty
  • baseType
  • javaType
  • typeSafeEnumClass
  • typeName
Java to XML-Schema Use the following annotations to define mapping to a scheme from a Java type.
  • XmlElement
  • XmlAttribute
  • XmlValue
  • XmlTransient
  • XmlAccessorOrder
  • XmlAccessorType
  • XmlElementRef
  • XmlRootElement
  • XmlType
  • XmlEnum
  • XmlEnumValue
  • XmlAnyAttribute
  • XmlAnyElement
  • XmlID
  • XmlIDREF
JAXBIntrospector Use the methods of the class to introspect JAXBObjects and be aware of the impact of using a JAXBElement.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值