Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.nuiton.eugene.java;
 
 /*
  * #%L
  * EUGene :: Java templates
  * $Id: JavaTemplatesGeneratorUtil.java 1200 2012-11-06 09:49:22Z tchemit $
  * $HeadURL: http://svn.nuiton.org/svn/eugene/tags/eugene-2.6/eugene-java-templates/src/main/java/org/nuiton/eugene/java/JavaTemplatesGeneratorUtil.java $
  * %%
  * Copyright (C) 2012 CodeLutin
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as 
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public 
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
 * #L%
 */
Utility class for pure java templates.

Author(s):
tchemit <chemit@codelutin.com>
Since:
2.5.6
public class JavaTemplatesGeneratorUtil extends JavaGeneratorUtil {

    
Check if the given classifier has the JavaTemplatesStereoTypes.STEREOTYPE_BEAN stereotype.

Parameters:
classifier classifier to test
Returns:
true if stereotype was found, false otherwise
See also:
JavaTemplatesStereoTypes.STEREOTYPE_BEAN
    public static boolean hasBeanStereotype(ObjectModelClassifier classifier) {
        return classifier.hasStereotype(.);
    }

    
Obtain the value of the JavaTemplatesTagValues.TAG_NO_PCS tag value on the given model or classifier.

It will first look on the model, and then in the given classifier.

Parameters:
model model to seek
classifier classifier to seek
Returns:
the none empty value of the found tag value or null if not found nor empty.
Since:
2.3
See also:
JavaTemplatesTagValues.TAG_NO_PCS
    public static String getNoPCSTagValue(ObjectModel modelObjectModelClassifier classifier) {
        String value = findTagValue(.classifiermodel);
        return value;
    }

    
Obtain the value of the JavaTemplatesTagValues.TAG_BEAN_SUPER_CLASS tag value on the given model or classifier.

It will first look on the model, and then in the given classifier.

Parameters:
model model to seek
classifier classifier to seek
Returns:
the none empty value of the found tag value or null if not found nor empty.
Since:
2.3
See also:
JavaTemplatesTagValues.TAG_BEAN_SUPER_CLASS
    public static String getBeanSuperClassTagValue(ObjectModel modelObjectModelClassifier classifier) {
        String value = findTagValue(.classifiermodel);
        return value;
    }
New to GrepCode? Check out our FAQ X