|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base interface for all Serializers. It defines generic methods for marshalling and unmarshalling a Java object.
XmlSerializer
,
SerializerFactory
Method Summary | |
java.lang.String |
getDefaultEncodingStyle()
Returns the default encoding that is the encoding style used by the Serializer when it is created. |
java.lang.String |
getEncodingStyle()
Get the encoding style associated with this Serializer. |
java.lang.String[] |
getSupportedEncodingStyles()
Get all the encoding styles supported by this Serializer. |
java.lang.String |
getType()
Return the type of object that this Serializer can marshall and unmarshall from and to XML, for example com.sun.management.oss.TroubleTicketValue |
void |
setEncodingStyle(java.lang.String encodingStyle)
Set the encoding style associated with this Serializer. |
Method Detail |
public java.lang.String[] getSupportedEncodingStyles()
public java.lang.String getDefaultEncodingStyle()
setEncodingStyle()
public void setEncodingStyle(java.lang.String encodingStyle) throws java.lang.IllegalArgumentException
For example "http://java.sun.com/products/oss/xml" for the OSSJ XML Encoding Style defined in the OSSJ Design Guidelines.
One of the items returned by getSupportedEncodingStyles()
should be provided as parameter.
encodingStyle
- the encodingStyle string.
java.lang.IllegalArgumentException
- if the provided
encoding style is not valid or is not recognized by the Serializer.public java.lang.String getEncodingStyle()
A Serializer is always created with a default encoding style.
The default encoding style is provided by the value of the
OSS_DEFAULT_ENCODING_STYLE
found in the declaration of the
specific serializer type <Serializer Type>EncodingStyles
interface.
public java.lang.String getType()
com.sun.management.oss.TroubleTicketValue
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |