public class Types extends Object
| Constructor and Description |
|---|
Types() |
| Modifier and Type | Method and Description |
|---|---|
static List<io.sundr.codegen.model.Property> |
allProperties(io.sundr.codegen.model.TypeDef typeDef)
All properties (including inherited).
|
static io.sundr.codegen.model.TypeDef |
applyTypeArguments(io.sundr.codegen.model.ClassRef ref)
Apply type arguments on all generic properties of a
ClassRef. |
static Optional<io.sundr.codegen.model.Property> |
findStatusProperty(io.sundr.codegen.model.TypeDef typeDef)
Finds the status property.
|
static boolean |
isNamespaced(io.sundr.codegen.model.TypeDef definition) |
static boolean |
isNamespaced(io.sundr.codegen.model.TypeDef definition,
Set<io.sundr.codegen.model.TypeDef> visited) |
static boolean |
isStatusProperty(io.sundr.codegen.model.Property property)
Returns true if the specified property corresponds to status.
|
static Set<io.sundr.codegen.model.TypeDef> |
unrollHierarchy(io.sundr.codegen.model.TypeDef typeDef)
Unrolls the hierarchy of a specified type.
|
public static List<io.sundr.codegen.model.Property> allProperties(io.sundr.codegen.model.TypeDef typeDef)
typeDef - The type.public static Set<io.sundr.codegen.model.TypeDef> unrollHierarchy(io.sundr.codegen.model.TypeDef typeDef)
typeDef - The specified type.public static io.sundr.codegen.model.TypeDef applyTypeArguments(io.sundr.codegen.model.ClassRef ref)
ClassRef.ref - the ClassRef on which we want to apply the type argumentspublic static boolean isNamespaced(io.sundr.codegen.model.TypeDef definition)
public static boolean isNamespaced(io.sundr.codegen.model.TypeDef definition,
Set<io.sundr.codegen.model.TypeDef> visited)
public static Optional<io.sundr.codegen.model.Property> findStatusProperty(io.sundr.codegen.model.TypeDef typeDef)
typeDef - the type whose status property we want to findpublic static boolean isStatusProperty(io.sundr.codegen.model.Property property)
property - the property we want to checktrue if named status, false otherwiseCopyright © 2015–2021 Red Hat. All rights reserved.