Class BasicBeanDefMapper
java.lang.Object
org.apache.juneau.marshall.jsonschema.BasicBeanDefMapper
- All Implemented Interfaces:
MarshallingDefMapper
Simple implementation of the
MarshallingDefMapper interface.
IDs are created by calling Class.getSimpleName().
URIs are constructed using the pattern
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.juneau.marshall.jsonschema.MarshallingDefMapper
MarshallingDefMapper.Void -
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault constructor.protectedBasicBeanDefMapper(String uriPattern) Constructor that allows you to override the URI pattern. -
Method Summary
-
Constructor Details
-
BasicBeanDefMapper
public BasicBeanDefMapper()Default constructor. -
BasicBeanDefMapper
Constructor that allows you to override the URI pattern.- Parameters:
uriPattern- The URI pattern usingMessageFormat-style arguments. Must not benull .
-
-
Method Details
-
getId
Description copied from interface:MarshallingDefMapperReturns the ID for the specified class.- Specified by:
getIdin interfaceMarshallingDefMapper- Parameters:
cm- The class.- Returns:
- The ID for the specified class.
-
getURI
Description copied from interface:MarshallingDefMapperReturns the URI for the specified class.- Specified by:
getURIin interfaceMarshallingDefMapper- Parameters:
cm- The class.- Returns:
- The URI for the specified class.
-
getURI
Description copied from interface:MarshallingDefMapperReturns the URI for the specified class by its ID.- Specified by:
getURIin interfaceMarshallingDefMapper- Parameters:
id- The class ID.- Returns:
- The URI for the specified class.
-