Examples of Convention


Examples of de.hunsicker.jalopy.storage.Convention

        // File name

        env.set("fileName", file.getName());

        Convention convention = Convention.getInstance();

        String classMask = "/**\n * @author $author$\n*/";

        convention.put(
                ConventionKeys.COMMENT_JAVADOC_TEMPLATE_CLASS,
                env.interpolate(classMask));

        convention.put(
                ConventionKeys.COMMENT_JAVADOC_TEMPLATE_INTERFACE,
                env.interpolate(classMask));

        jalopy.format();

View Full Code Here

Examples of net.sf.minuteProject.configuration.bean.enrichment.convention.Convention

    convention.setType(TargetConvention.ENABLE_UPDATABLE_CODE);
    return convention;   
  }

  private Convention getPkForTableConvention() {
    Convention convention = new TableDefaultPrimaryKeyConvention ();
    convention.setDefaultValue(getVirtualPrimaryKey());
    return convention;
  }
View Full Code Here

Examples of net.sf.minuteProject.configuration.bean.enrichment.convention.Convention

    convention.setDefaultValue(getVirtualPrimaryKey());
    return convention;
  }
 
  private Convention getPkForViewConvention() {
    Convention convention = new ViewPrimaryKeyConvention ();
    convention.setDefaultValue(getVirtualPrimaryKey());
    return convention;
  }
View Full Code Here

Examples of net.sf.minuteProject.configuration.bean.enrichment.convention.Convention

      getKernelConventionList().add(getEnableUpdatableAreaConvention());
    }
  }

  private Convention getEnableUpdatableAreaConvention() {
    Convention convention = new TargetConvention();
    convention.setType(TargetConvention.ENABLE_UPDATABLE_CODE);
    return convention;   
  }
View Full Code Here

Examples of org.apache.abdera.ext.serializer.annotation.Convention

        Pattern regex = isCaseSensitive ? Pattern.compile(pattern) : Pattern.compile(pattern, Pattern.CASE_INSENSITIVE);
        conventions.put(annotationType, regex);
    }

    public void setConvention(Class<? extends Annotation> annotationType) {
        Convention conv = annotationType.getAnnotation(Convention.class);
        if (conv == null)
            throw new IllegalArgumentException("No Convention Annotation [" + annotationType + "]");
        setConvention(conv.value(), annotationType);
    }
View Full Code Here

Examples of org.apache.abdera.ext.serializer.annotation.Convention

        conventions.put(annotationType, regex);
  }
 
  public void setConvention(
    Class<? extends Annotation> annotationType) {
      Convention conv = annotationType.getAnnotation(Convention.class);
      if (conv == null)
        throw new IllegalArgumentException(
          "No Convention Annotation [" + annotationType + "]");
      setConvention(conv.value(),annotationType);
  }
View Full Code Here

Examples of org.apache.sis.io.wkt.Convention

     *
     * @return {@code "Axis"}.
     */
    @Override
    protected String formatTo(final Formatter formatter) {
        final Convention convention = formatter.getConvention();
        final boolean isWKT1 = convention.majorVersion() == 1;
        final boolean isInternal = (convention == Convention.INTERNAL);
        String name = null;
        if (isWKT1 || isInternal || !omitName(formatter)) {
            name = IdentifiedObjects.getName(this, formatter.getNameAuthority());
            if (name == null) {
View Full Code Here

Examples of org.apache.sis.io.wkt.Convention

     * @return {@code "TimeDatum"}.
     */
    @Override
    protected String formatTo(final Formatter formatter) {
        super.formatTo(formatter);
        final Convention convention = formatter.getConvention();
        if (convention == Convention.INTERNAL) {
            formatter.append(MetadataUtilities.toDate(origin)); // This is an extension compared to ISO 19162.
        } else if (convention.majorVersion() == 1) {
            formatter.setInvalidWKT(this, null);
        }
        return "TimeDatum";
    }
View Full Code Here

Examples of org.apache.sis.io.wkt.Convention

     * @return {@code "ImageDatum"}.
     */
    @Override
    protected String formatTo(final Formatter formatter) {
        super.formatTo(formatter);
        final Convention convention = formatter.getConvention();
        if (convention == Convention.INTERNAL) {
            formatter.append(pixelInCell); // This is an extension compared to ISO 19162.
        } else if (convention.majorVersion() == 1) {
            formatter.setInvalidWKT(this, null);
        }
        return "ImageDatum";
    }
View Full Code Here

Examples of org.apache.sis.io.wkt.Convention

            if (cs == null) {
                cs = citation;
                citation  = null;
            }
            if (cs != null) {
                final Convention convention = formatter.getConvention();
                if (convention.majorVersion() == 1) {
                    keyword = "Authority";
                    formatter.append(cs, ElementKind.IDENTIFIER);
                    formatter.append(code, ElementKind.IDENTIFIER);
                } else {
                    keyword = "Id";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.