Class AbstractConverter

    • Field Detail

      • variants

        protected List<org.restlet.engine.resource.VariantInfo> variants
    • Constructor Detail

      • AbstractConverter

        public AbstractConverter()
    • Method Detail

      • getObjectClasses

        public List<Class<?>> getObjectClasses​(org.restlet.representation.Variant source)
        Specified by:
        getObjectClasses in class org.restlet.engine.converter.ConverterHelper
      • getVariants

        public List<org.restlet.engine.resource.VariantInfo> getVariants​(Class<?> source)
                                                                  throws IOException
        Specified by:
        getVariants in class org.restlet.engine.converter.ConverterHelper
        Throws:
        IOException
      • score

        public float score​(Object source,
                           org.restlet.representation.Variant target,
                           org.restlet.resource.Resource resource)
        Specified by:
        score in class org.restlet.engine.converter.ConverterHelper
      • score

        public <T> float score​(org.restlet.representation.Representation source,
                               Class<T> target,
                               org.restlet.resource.Resource resource)
        Specified by:
        score in class org.restlet.engine.converter.ConverterHelper
      • toObject

        public <T> T toObject​(org.restlet.representation.Representation source,
                              Class<T> target,
                              org.restlet.resource.Resource resource)
                       throws IOException
        Specified by:
        toObject in class org.restlet.engine.converter.ConverterHelper
        Throws:
        IOException
      • toRepresentation

        public org.restlet.representation.Representation toRepresentation​(Object source,
                                                                          org.restlet.representation.Variant target,
                                                                          org.restlet.resource.Resource resource)
                                                                   throws IOException
        Specified by:
        toRepresentation in class org.restlet.engine.converter.ConverterHelper
        Throws:
        IOException
      • objectFromFragment

        protected <T> T objectFromFragment​(TopicMapIF fragment,
                                           Class<T> target,
                                           org.restlet.resource.Resource resource)