Package org.refcodes.net
Class TextXmlFactory
- java.lang.Object
-
- org.refcodes.net.ApplicationJsonFactory
-
- org.refcodes.net.ApplicationXmlFactory
-
- org.refcodes.net.TextXmlFactory
-
- All Implemented Interfaces:
Marshalable<java.lang.String>
,MediaTypeAccessor
,MediaTypeFactory
,Unmarshalable<java.lang.String>
public class TextXmlFactory extends ApplicationXmlFactory implements MediaTypeFactory
Implements theMediaTypeFactory
for Media-Type "application/xml" (MediaType.APPLICATION_XML
). CAUTION: This implementation uses getter/setter property resolution instead of field resolution as of the used marshaling API.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.net.MediaTypeAccessor
MediaTypeAccessor.MediaTypeBuilder<B extends MediaTypeAccessor.MediaTypeBuilder<B>>, MediaTypeAccessor.MediaTypeMutator, MediaTypeAccessor.MediaTypeProperty
-
-
Constructor Summary
Constructors Constructor Description TextXmlFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaType
getMediaType()
Retrieves the Media-Type from the Media-Type property.-
Methods inherited from class org.refcodes.net.ApplicationJsonFactory
toElementName, toPlainJson, toUnboxed, toVariableDeclaration
-
Methods inherited from class org.refcodes.net.ApplicationXmlFactory
toMarshaled, toUnmarshaled
-
Methods inherited from interface org.refcodes.net.Marshalable
toMarshaled, toMarshaled
-
Methods inherited from interface org.refcodes.net.MediaTypeFactory
fromMarshaled, fromMarshaled, fromMarshaled, fromMarshaled, fromUnmarshaled, fromUnmarshaled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.refcodes.net.Unmarshalable
toUnmarshaled, toUnmarshaled, toUnmarshaled, toUnmarshaled
-
-
-
-
Method Detail
-
getMediaType
public MediaType getMediaType()
Retrieves the Media-Type from the Media-Type property.- Specified by:
getMediaType
in interfaceMediaTypeAccessor
- Overrides:
getMediaType
in classApplicationXmlFactory
- Returns:
- The Media-Type stored by the Media-Type property.
-
-