com.mangofactory.swagger.models.alternates
Class AlternateTypeRule
java.lang.Object
com.mangofactory.swagger.models.alternates.AlternateTypeRule
public class AlternateTypeRule
- extends Object
|
Constructor Summary |
AlternateTypeRule(com.fasterxml.classmate.ResolvedType original,
com.fasterxml.classmate.ResolvedType alternate)
Instantiates a new Alternate type rule. |
|
Method Summary |
com.fasterxml.classmate.ResolvedType |
alternateFor(com.fasterxml.classmate.ResolvedType type)
Provides alternate for supplier type. |
boolean |
appliesTo(com.fasterxml.classmate.ResolvedType type)
Check if an alternate applies to type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlternateTypeRule
public AlternateTypeRule(com.fasterxml.classmate.ResolvedType original,
com.fasterxml.classmate.ResolvedType alternate)
- Instantiates a new Alternate type rule.
- Parameters:
original - the original typealternate - the alternate type
alternateFor
public com.fasterxml.classmate.ResolvedType alternateFor(com.fasterxml.classmate.ResolvedType type)
- Provides alternate for supplier type.
- Parameters:
type - the type
- Returns:
- the alternate for the type
appliesTo
public boolean appliesTo(com.fasterxml.classmate.ResolvedType type)
- Check if an alternate applies to type.
- Parameters:
type - the source
- Returns:
- the boolean
Copyright © May 2012-2014 The Mango Factory. All Rights Reserved.