@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ApiModel
ModelLookup
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
category
The category this API belongs to is the first token in the URL after the api root.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
defaultConverterMediaType
The default media type to use to find a HypermediaConverter to serialize the model.
|
boolean |
isDefault
Mark this as the default model for the category.
|
java.lang.Class<?> |
modelClass
Use this to signal to the framework to managed this object via a different interface.
|
java.lang.Class<? extends ModelLookup> |
modelLookup
If a Pojo can't be simply bound to a sling resource type or no resource types exist for the resource then pass
this lookup class back and programmatically return the Pojos to use.
|
java.lang.String |
resourceType
The sling:resourcetype to bind this Model to.
|
java.lang.String[] |
type
Returns a list of classes that will be used when Siren serializes this Pojo to JS.
|
public abstract java.lang.String category
public abstract java.lang.String resourceType
public abstract java.lang.String[] type
public abstract java.lang.Class<? extends ModelLookup> modelLookup
public abstract java.lang.String defaultConverterMediaType
public abstract boolean isDefault
public abstract java.lang.Class<?> modelClass
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"