Package org.openxava.model.meta
Class DefaultSize
java.lang.Object
org.openxava.model.meta.DefaultSize
Utility class to access to default length of a type or stereotype.
- Author:
- Javier Paniza; modified by Radoslaw Ostrzycki, Newitech
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void_addForAnnotation(String className, int length) static void_addForStereotype(String name, int length) static void_addForType(String className, int length) static void_addScaleForAnnotation(String className, int length) static void_addScaleForStereotype(String name, int length) static void_addScaleForType(String className, int length) static intforAnnotation(Annotation annotation) static intforStereotype(String name) static intstatic intscaleForAnnotation(Annotation annotation) static intscaleForStereotype(String name) static intscaleForType(Class className)
-
Constructor Details
-
DefaultSize
public DefaultSize()
-
-
Method Details
-
_addForStereotype
- Throws:
XavaException
-
_addForType
- Throws:
XavaException
-
_addForAnnotation
- Throws:
XavaException
-
_addScaleForStereotype
- Throws:
XavaException
-
_addScaleForType
- Throws:
XavaException
-
_addScaleForAnnotation
- Throws:
XavaException
-
forStereotype
- Parameters:
name-- Returns:
- size for stereotype
- Throws:
ElementNotFoundExceptionXavaException
-
forAnnotation
public static int forAnnotation(Annotation annotation) throws ElementNotFoundException, XavaException - Parameters:
name-- Returns:
- size for stereotype
- Throws:
ElementNotFoundExceptionXavaException
-
forType
- Parameters:
className-- Returns:
- size param for class
- Throws:
ElementNotFoundExceptionXavaException
-
scaleForStereotype
- Parameters:
name-- Returns:
- Throws:
ElementNotFoundExceptionXavaException
-
scaleForType
- Parameters:
className-- Returns:
- Throws:
ElementNotFoundExceptionXavaException
-
scaleForAnnotation
public static int scaleForAnnotation(Annotation annotation) throws ElementNotFoundException, XavaException
-