/** * <p> * Finds the tagged value with the specified 'tagName'. In case * there are more values the first one found will be returned. * </p> * @see ModelElementFacade#findTaggedValue(String tagName) */ public Object findTaggedValue(String tagName) { return this.getSuperClassifierFacade().findTaggedValue(tagName); }
/** * <p> * All generalizations for this generalizable element, goes up the * inheritance tree. * </p> * @see GeneralizableElementFacade#getAllGeneralizations() */ public Collection<GeneralizableElementFacade> getAllGeneralizations() { return this.getSuperClassifierFacade().getAllGeneralizations(); }
/** * <p> * Gets all attributes for the classifier and if 'follow' is true * goes up the inheritance hierarchy and gets the attributes from * the super classes as well. * </p> * @see ClassifierFacade#getAttributes(boolean follow) */ public List getAttributes(boolean follow) { return this.getSuperClassifierFacade().getAttributes(follow); }
/** * Gets the getter prefix for a getter operation given the <code>type</code>. * * @param type the type from which to determine the prefix. * @return the getter prefix. */ public static String getGetterPrefix(final ClassifierFacade type) { return type != null && type.isBooleanType() && type.isPrimitive() ? "is" : "get"; }
/** * Returns true/false based on whether or not synthetic or auto generated create methods should be allowed. * * @param classifier The entity or session bean. * @return true/false */ static boolean allowSyntheticCreateMethod(ClassifierFacade classifier) { ExceptionUtils.checkNull("classifer", classifier); return !classifier.isAbstract() && classifier.findTaggedValue( EJB3Profile.TAGGEDVALUE_EJB_NO_SYNTHETIC_CREATE_METHOD) == null; }
/** * Gets the interface name for the passed in <code>classifier</code>. Returns 'LocalHome' if the mode element has * the entity stereotype, returns 'Home' otherwise. * @param classifier * @return the interface name. */ static String getHomeInterfaceName(ClassifierFacade classifier) { ExceptionUtils.checkNull("classifer", classifier); String homeInterfaceName; if (classifier.hasStereotype(UMLProfile.STEREOTYPE_ENTITY)) { homeInterfaceName = classifier.getName() + "LocalHome"; } else { homeInterfaceName = classifier.getName() + "Home"; } return homeInterfaceName; }
/** * <p> * The operations owned by this classifier. * </p> * @see ClassifierFacade#getOperations() */ public List<OperationFacade> getOperations() { return this.getSuperClassifierFacade().getOperations(); }
/** * <p> * Gets the direct specializations (i.e. sub elements) for this * generalizatble element. * </p> * @see GeneralizableElementFacade#getSpecializations() */ public Collection<GeneralizableElementFacade> getSpecializations() { return this.getSuperClassifierFacade().getSpecializations(); }
/** * <p> * The name of the model element. * </p> * @see ModelElementFacade#getName() */ public String getName() { return this.getSuperClassifierFacade().getName(); }
/** * <p> * The fully qualified name of this model element. * </p> * @see ModelElementFacade#getFullyQualifiedName() */ public String getFullyQualifiedName() { return this.getSuperClassifierFacade().getFullyQualifiedName(); }
/** * <p> * Indicates if this classifier is 'abstract'. * </p> * @see ClassifierFacade#isAbstract() */ public boolean isAbstract() { return this.getSuperClassifierFacade().isAbstract(); }
/** * Returns true if the Seam stereotype is modeled on the class. * * @param classifier The classifier to lookup if the stereotype is modeled * @return True is stereotype exists, false otherwise */ static boolean isSeamComponent(ClassifierFacade classifier) { boolean isSeamComponent = false; if (classifier.hasStereotype(EJB3Profile.STEREOTYPE_SEAM_COMPONENT)) { isSeamComponent = true; } return isSeamComponent; }
/** * <p> * Indicates if this type represents a boolean type or not. * </p> * @see ClassifierFacade#isBooleanType() */ public boolean isBooleanType() { return this.getSuperClassifierFacade().isBooleanType(); }
/** * <p> * The operations owned by this classifier. * </p> * @see ClassifierFacade#getOperations() */ public List<OperationFacade> getOperations() { return this.getSuperClassifierFacade().getOperations(); }
/** * <p> * Gets the direct specializations (i.e. sub elements) for this * generalizatble element. * </p> * @see GeneralizableElementFacade#getSpecializations() */ public Collection<GeneralizableElementFacade> getSpecializations() { return this.getSuperClassifierFacade().getSpecializations(); }
/** * <p> * The name of the model element. * </p> * @see ModelElementFacade#getName() */ public String getName() { return this.getSuperClassifierFacade().getName(); }
/** * <p> * The fully qualified name of this model element. * </p> * @see ModelElementFacade#getFullyQualifiedName() */ public String getFullyQualifiedName() { return this.getSuperClassifierFacade().getFullyQualifiedName(); }
/** * <p> * Indicates if this classifier is 'abstract'. * </p> * @see ClassifierFacade#isAbstract() */ public boolean isAbstract() { return this.getSuperClassifierFacade().isAbstract(); }
/** * <p> * Returns true if the model element has the specified stereotype. * If the stereotype itself does not match, then a search will be * made up the stereotype inheritance hierarchy, and if one of the * stereotype's ancestors has a matching name this method will * return true, false otherwise. * </p> * <p> * For example, if we have a certain stereotype called * <<exception>> and a model element has a stereotype called * <<applicationException>> which extends <<exception>>, when * calling this method with 'stereotypeName' defined as 'exception' * the method would return true since <<applicationException>> * inherits from <<exception>>. If you want to check if the model * element has the exact stereotype, then use the method * 'hasExactStereotype' instead. * </p> * @see ModelElementFacade#hasStereotype(String stereotypeName) */ public boolean hasStereotype(String stereotypeName) { return this.getSuperClassifierFacade().hasStereotype(stereotypeName); }
/** * Gets the getter prefix for a getter operation given the <code>type</code>. * * @param type the type from which to determine the prefix. * @return the getter prefix. */ public static String getGetterPrefix(final ClassifierFacade type) { return type != null && type.isBooleanType() && type.isPrimitive() ? "is" : "get"; }