public class BasicBeanDefMapper extends Object implements BeanDefMapper
BeanDefMapper interface.
IDs are created by calling Class.getSimpleName().
URIs are constructed using the pattern
BeanDefMapper.Null| Modifier | Constructor and Description |
|---|---|
|
BasicBeanDefMapper()
Default constructor.
|
protected |
BasicBeanDefMapper(String uriPattern)
Constructor that allows you to override the URI pattern.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId(ClassMeta<?> cm)
Returns the ID for the specified class.
|
URI |
getURI(ClassMeta<?> cm)
Returns the URI for the specified class.
|
URI |
getURI(String id)
Returns the URI for the specified class by its ID.
|
public BasicBeanDefMapper()
protected BasicBeanDefMapper(String uriPattern)
uriPattern - The URI pattern using MessageFormat-style arguments.public String getId(ClassMeta<?> cm)
BeanDefMappergetId in interface BeanDefMappercm - The class.public URI getURI(ClassMeta<?> cm)
BeanDefMappergetURI in interface BeanDefMappercm - The class.public URI getURI(String id)
BeanDefMappergetURI in interface BeanDefMapperid - The class ID.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.