Exemple #1
0
 @Check
 public void checkStartsWithCapital(final AbstractComponent ne) {
   String _name = ne.getName();
   char _charAt = _name.charAt(0);
   boolean _isUpperCase = Character.isUpperCase(_charAt);
   boolean _not = (!_isUpperCase);
   if (_not) {
     String _switchResult = null;
     boolean _matched = false;
     if (!_matched) {
       if (ne instanceof Ecosystem) {
         _matched = true;
         _switchResult = "Ecosystem";
       }
     }
     if (!_matched) {
       if (ne instanceof Species) {
         _matched = true;
         _switchResult = "Species";
       }
     }
     final String what = _switchResult;
     this.error(
         (what + " name must start with a capital"),
         SpeadlPackage.Literals.ABSTRACT_COMPONENT__NAME);
   }
 }