Skip navigation links
oracle.stellent.wcm.core.project.jaxb
Class JAXBProjectFileSerializer
java.lang.Object
oracle.stellent.wcm.common.xml.JAXBSerializer<oracle.stellent.wcm.core.project.model.ProjectType>
oracle.stellent.wcm.core.project.jaxb.JAXBProjectFileSerializer
-
public class JAXBProjectFileSerializer
- extends JAXBSerializer<oracle.stellent.wcm.core.project.model.ProjectType>
Method Summary |
protected javax.xml.bind.JAXBElement |
coerceFromType(oracle.stellent.wcm.core.project.model.ProjectType object)
Coerce the input type into a type that can be marshalled. |
protected oracle.stellent.wcm.core.project.model.ProjectType |
coerceToType(javax.xml.bind.JAXBElement unmarshalledObject)
Coerce the unmarshalled object into the type to return |
protected javax.xml.bind.JAXBContext |
createJAXBContext()
Create the JAXBContext object. |
static JAXBProjectFileSerializer |
getInstance()
|
protected java.lang.String |
getLocalSchemaLocation()
|
protected java.lang.String |
getSchemaLocation()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAMESPACE_URI
public static final java.lang.String NAMESPACE_URI
-
- See Also:
- Constant Field Values
SCHEMA_LOCATION
public static final java.lang.String SCHEMA_LOCATION
-
- See Also:
- Constant Field Values
ROOT_NODE
public static final java.lang.String ROOT_NODE
-
- See Also:
- Constant Field Values
JAXBProjectFileSerializer
public JAXBProjectFileSerializer()
getInstance
public static JAXBProjectFileSerializer getInstance()
-
- Returns:
- shared instance of the project parser
createJAXBContext
protected javax.xml.bind.JAXBContext createJAXBContext()
throws javax.xml.bind.JAXBException
- Create the JAXBContext object. Note: this is only called once and the result is cached
-
- Specified by:
createJAXBContext
in class JAXBSerializer<oracle.stellent.wcm.core.project.model.ProjectType>
-
- Returns:
- the JAXBContext
- Throws:
javax.xml.bind.JAXBException
coerceToType
protected oracle.stellent.wcm.core.project.model.ProjectType coerceToType(javax.xml.bind.JAXBElement unmarshalledObject)
- Coerce the unmarshalled object into the type to return
-
- Specified by:
coerceToType
in class JAXBSerializer<oracle.stellent.wcm.core.project.model.ProjectType>
-
- Parameters:
unmarshalledObject
- the unmarshalled jaxb object
- Returns:
- the converted type
coerceFromType
protected javax.xml.bind.JAXBElement coerceFromType(oracle.stellent.wcm.core.project.model.ProjectType object)
- Coerce the input type into a type that can be marshalled.
-
- Specified by:
coerceFromType
in class JAXBSerializer<oracle.stellent.wcm.core.project.model.ProjectType>
-
- Parameters:
object
- the input object
- Returns:
- an object to be handed to the jaxb library
getLocalSchemaLocation
protected java.lang.String getLocalSchemaLocation()
-
- Overrides:
getLocalSchemaLocation
in class JAXBSerializer<oracle.stellent.wcm.core.project.model.ProjectType>
-
- Returns:
- the local schema location or null to not use schema validation
getSchemaLocation
protected java.lang.String getSchemaLocation()
-
- Overrides:
getSchemaLocation
in class JAXBSerializer<oracle.stellent.wcm.core.project.model.ProjectType>
-
- Returns:
- the schema location or null for no location
Skip navigation links
Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.