Package org.openxava.model.meta
Class DefaultSize
- java.lang.Object
-
- org.openxava.model.meta.DefaultSize
-
public class DefaultSize extends java.lang.Object
Utility class to access to default length of a type or stereotype.- Author:
- Javier Paniza; modified by Radoslaw Ostrzycki, Newitech
-
-
Constructor Summary
Constructors Constructor Description DefaultSize()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
_addForAnnotation(java.lang.String className, int length)
static void
_addForStereotype(java.lang.String name, int length)
static void
_addForType(java.lang.String className, int length)
static void
_addScaleForAnnotation(java.lang.String className, int length)
static void
_addScaleForStereotype(java.lang.String name, int length)
static void
_addScaleForType(java.lang.String className, int length)
static int
forAnnotation(java.lang.annotation.Annotation annotation)
static int
forStereotype(java.lang.String name)
static int
forType(java.lang.Class className)
static int
scaleForAnnotation(java.lang.annotation.Annotation annotation)
static int
scaleForStereotype(java.lang.String name)
static int
scaleForType(java.lang.Class className)
-
-
-
Method Detail
-
_addForStereotype
public static void _addForStereotype(java.lang.String name, int length) throws XavaException
- Throws:
XavaException
-
_addForType
public static void _addForType(java.lang.String className, int length) throws XavaException
- Throws:
XavaException
-
_addForAnnotation
public static void _addForAnnotation(java.lang.String className, int length) throws XavaException
- Throws:
XavaException
-
_addScaleForStereotype
public static void _addScaleForStereotype(java.lang.String name, int length) throws XavaException
- Throws:
XavaException
-
_addScaleForType
public static void _addScaleForType(java.lang.String className, int length) throws XavaException
- Throws:
XavaException
-
_addScaleForAnnotation
public static void _addScaleForAnnotation(java.lang.String className, int length) throws XavaException
- Throws:
XavaException
-
forStereotype
public static int forStereotype(java.lang.String name) throws ElementNotFoundException, XavaException
- Parameters:
name
-- Returns:
- size for stereotype
- Throws:
ElementNotFoundException
XavaException
-
forAnnotation
public static int forAnnotation(java.lang.annotation.Annotation annotation) throws ElementNotFoundException, XavaException
- Parameters:
name
-- Returns:
- size for stereotype
- Throws:
ElementNotFoundException
XavaException
-
forType
public static int forType(java.lang.Class className) throws ElementNotFoundException, XavaException
- Parameters:
className
-- Returns:
- size param for class
- Throws:
ElementNotFoundException
XavaException
-
scaleForStereotype
public static int scaleForStereotype(java.lang.String name) throws ElementNotFoundException, XavaException
- Parameters:
name
-- Returns:
- Throws:
ElementNotFoundException
XavaException
-
scaleForType
public static int scaleForType(java.lang.Class className) throws ElementNotFoundException, XavaException
- Parameters:
className
-- Returns:
- Throws:
ElementNotFoundException
XavaException
-
scaleForAnnotation
public static int scaleForAnnotation(java.lang.annotation.Annotation annotation) throws ElementNotFoundException, XavaException
-
-