|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.representation.Variant
org.restlet.engine.resource.VariantInfo
public class VariantInfo
Variant that is declared by an annotated Java method.
Constructor Summary | |
---|---|
VariantInfo(MediaType mediaType)
Constructor. |
|
VariantInfo(MediaType mediaType,
AnnotationInfo annotationInfo)
Constructor. |
|
VariantInfo(Variant variant,
AnnotationInfo annotationInfo)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object other)
Indicates if the current variant is equal to the given variant. |
AnnotationInfo |
getAnnotationInfo()
Returns the optional annotation descriptor. |
float |
getInputScore()
Returns the affinity between this variant and an incoming representation. |
void |
setInputScore(float inputScore)
Sets the affinity between this variant and an incoming representation. |
Methods inherited from class org.restlet.representation.Variant |
---|
createClientInfo, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VariantInfo(MediaType mediaType)
mediaType
- The media type.public VariantInfo(MediaType mediaType, AnnotationInfo annotationInfo)
mediaType
- The media type.annotationInfo
- The optional annotation descriptor.public VariantInfo(Variant variant, AnnotationInfo annotationInfo)
variant
- The variant to enrich.annotationInfo
- The optional annotation descriptor.Method Detail |
---|
public boolean equals(Object other)
equals
in class Variant
other
- The other variant.
public AnnotationInfo getAnnotationInfo()
public float getInputScore()
public void setInputScore(float inputScore)
inputScore
- The affinity between this variant and an incoming
representation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |