info.magnolia.ui.form.field.converter
Class BaseIdentifierToPathConverter
java.lang.Object
info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter
- All Implemented Interfaces:
- com.vaadin.data.util.converter.Converter<String,String>, IdentifierToPathConverter, Serializable
public class BaseIdentifierToPathConverter
- extends Object
- implements IdentifierToPathConverter
Converter used to convert a UUID to a Path and Path to UUID.
In general, if the translation is not possible, return null.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface com.vaadin.data.util.converter.Converter |
com.vaadin.data.util.converter.Converter.ConversionException |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseIdentifierToPathConverter
public BaseIdentifierToPathConverter()
convertToModel
public String convertToModel(String path,
Class<? extends String> targetType,
Locale locale)
throws com.vaadin.data.util.converter.Converter.ConversionException
- Specified by:
convertToModel
in interface com.vaadin.data.util.converter.Converter<String,String>
- Throws:
com.vaadin.data.util.converter.Converter.ConversionException
convertToPresentation
public String convertToPresentation(String uuid,
Class<? extends String> targetType,
Locale locale)
throws com.vaadin.data.util.converter.Converter.ConversionException
- Specified by:
convertToPresentation
in interface com.vaadin.data.util.converter.Converter<String,String>
- Throws:
com.vaadin.data.util.converter.Converter.ConversionException
getModelType
public Class<String> getModelType()
- Specified by:
getModelType
in interface com.vaadin.data.util.converter.Converter<String,String>
getPresentationType
public Class<String> getPresentationType()
- Specified by:
getPresentationType
in interface com.vaadin.data.util.converter.Converter<String,String>
setWorkspaceName
public void setWorkspaceName(String workspaceName)
- Specified by:
setWorkspaceName
in interface IdentifierToPathConverter
- Parameters:
workspaceName
- Used to retrieve an identifier form a path.
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.