Examples of Format

@author Portet to jme3 by user starcom "Paul Kashofer Austria" @see ImageGraphics
  • com.jme3.texture.Image.Format
    sun.com/docs/books/tutorial/uiswing/concurrency/index.html">Swing tutorial for details.
  • If you would like to change the L&F take into account that PropertiesDialog and PropertiesDialog2 change the L&F setting upon invocation (you can e.g. change the L&F after the dialog).
  • @author Portet to jme3 by user starcom "Paul Kashofer Austria" @see ImageGraphics
  • com.sleepycat.persist.impl.Format
    The base class for all object formats. Formats are used to define the stored layout for all persistent classes, including simple types. The design documentation below describes the storage format for entities and its relationship to information stored per format in the catalog. Requirements ------------ + Provides EntityBinding for objects and EntryBinding for keys. + Provides SecondaryKeyCreator, SecondaryMultiKeyCreator and SecondaryMultiKeyNullifier (SecondaryKeyNullifier is redundant). + Works with reflection and bytecode enhancement. + For reflection only, works with any entity model not just annotations. + Bindings are usable independently of the persist API. + Performance is almost equivalent to hand coded tuple bindings. + Small performance penalty for compatible class changes (new fields, widening). + Secondary key create/nullify do not have to deserialize the entire record; in other words, store secondary keys at the start of the data. Class Format ------------ Every distinct class format is given a unique format ID. Class IDs are not equivalent to class version numbers (as in the version property of @Entity and @Persistent) because the format can change when the version number does not. Changes that cause a unique format ID to be assigned are: + Add field. + Widen field type. + Change primitive type to primitive wrapper class. + Add or drop secondary key. + Any incompatible class change. The last item, incompatible class changes, also correspond to a class version change. For each distinct class format the following information is conceptually stored in the catalog, keyed by format ID. - Class name - Class version number - Superclass format - Kind: simple, enum, complex, array - For kind == simple: - Primitive class - For kind == enum: - Array of constant names, sorted by name. - For kind == complex: - Primary key fieldInfo, or null if no primary key is declared - Array of secondary key fieldInfo, sorted by field name - Array of other fieldInfo, sorted by field name - For kind == array: - Component class format - Number of array dimensions - Other metadata for RawType Where fieldInfo is: - Field name - Field class - Other metadata for RawField Data Layout ----------- For each entity instance the data layout is as follows: instanceData: formatId keyFields... nonKeyFields... keyFields: fieldValue... nonKeyFields: fieldValue... The formatId is the (positive non-zero) ID of a class format, defined above. This is ID of the most derived class of the instance. It is stored as a packed integer. Following the format ID, zero or more sets of secondary key field values appear, followed by zero or more sets of other class field values. The keyFields are the sets of secondary key fields for each class in order of the highest superclass first. Within a class, fields are ordered by field name. The nonKeyFields are the sets of other non-key fields for each class in order of the highest superclass first. Within a class, fields are ordered by field name. A field value is: fieldValue: primitiveValue | nullId | instanceRef | instanceData | simpleValue | enumValue | arrayValue For a primitive type, a primitive value is used as defined for tuple bindings. For float and double, sorted float and sorted double tuple values are used. For a non-primitive type with a null value, a nullId is used that has a zero (illegal formatId) value. This includes String and other simple reference types. The formatId is stored as a packed integer, meaning that it is stored as a single zero byte. For a non-primitive type, an instanceRef is used for a non-null instance that appears earlier in the data byte array. An instanceRef is the negation of the byte offset of the instanceData that appears earlier. It is stored as a packed integer. The remaining rules apply only to reference types with non-null values that do not appear earlier in the data array. For an array type, an array formatId is used that identifies the component type and the number of array dimensions. This is followed by an array length (stored as a packed integer) and zero or more fieldValue elements. For an array with N+1 dimensions where N is greater than zero, the leftmost dimension is enumerated such that each fieldValue element is itself an array of N dimensions or null. arrayValue: formatId length fieldValue... For an enum type, an enumValue is used, consisting of a formatId that identifies the enum class and an enumIndex (stored as a packed integer) that identifies the constant name in the enum constant array of the enum class format: enumValue: formatId enumIndex For a simple type, a simpleValue is used. This consists of the formatId that identifies the class followed by the simple type value. For a primitive wrapper type the simple type value is the corresponding primitive, for a Date it is the milliseconds as a long primitive, and for BigInteger or BigDecimal it is a byte array as defined for tuple bindings of these types. simpleValue: formatId value For all other complex types, an instanceData is used, which is defined above. Secondary Keys -------------- For secondary key support we must account for writing and nullifying specific keys. Rather than instantiating the entity and then performing the secondary key operation, we strive to perform the secondary key operation directly on the byte format. To create a secondary key we skip over other fields and then copy the bytes of the embedded key. This approach is very efficient because a) the entity is not instantiated, and b) the secondary keys are stored at the beginning of the byte format and can be quickly read. To nullify we currently instantiate the raw entity, set the key field to null (or remove it from the array/collection), and convert the raw entity back to bytes. Although the performance of this approach is not ideal because it requires serialization, it avoids the complexity of modifying the packed serialized format directly, adjusting references to key objects, etc. Plus, when we nullify a key we are going to write the record, so the serialization overhead may not be significant. For the record, I tried implementing nullification of the bytes directly and found it was much too complex. Lifecycle --------- Format are managed by a Catalog class. Simple formats are managed by SimpleCatalog, and are copied from the SimpleCatalog by PersistCatalog. Other formats are managed by PersistCatalog. The lifecycle of a format instance is: - Constructed by the catalog when a format is requested for a Class that currently has no associated format. - The catalog calls setId() and adds the format to its format list (indexed by format id) and map (keyed by class name). - The catalog calls collectRelatedFormats(), where a format can create additional formats that it needs, or that should also be persistent. - The catalog calls initializeIfNeeded(), which calls the initialize() method of the format class. - initialize() should initialize any transient fields in the format. initialize() can assume that all related formats are available in the catalog. It may call initializeIfNeeded() for those related formats, if it needs to interact with an initialized related format; this does not cause a cycle, because initializeIfNeeded() does nothing for an already initialized format. - The catalog creates a group of related formats at one time, and then writes its entire list of formats to the catalog DB as a single record. This grouping reduces the number of writes. - When a catalog is opened and the list of existing formats is read. After a format is deserialized, its initializeIfNeeded() method is called. setId() and collectRelatedFormats() are not called, since the ID and related formats are stored in serialized fields. - There are two modes for opening an existing catalog: raw mode and normal mode. In raw mode, the old format is used regardless of whether it matches the current class definition; in fact the class is not accessed and does not need to be present. - In normal mode, for each existing format that is initialized, a new format is also created based on the current class and metadata definition. If the two formats are equal, the new format is discarded. If they are unequal, the new format becomes the current format and the old format's evolve() method is called. evolve() is responsible for adjusting the old format for class evolution. Any number of non-current formats may exist for a given class, and are setup to evolve the single current format for the class. @author Mark Hayes
  • com.volantis.mcs.layouts.Format
  • com.wiquery.plugins.demo.code.SourceInfo.FORMAT
  • com.xuggle.xuggler.IAudioSamples.Format
  • de.ddb.conversion.format.Format

    Describes the format of a document.

  • edu.harvard.hul.ois.ots.schemas.AES.Format
  • edu.mit.simile.fresnel.format.Format
    Represents a fresnel:Format. @author ryanlee
  • edu.ucla.sspace.matrix.MatrixIO.Format
  • eu.planets_project.ifr.core.techreg.formats.Format
    This is the Planets 'Preservation Object' 'Format' description entity. It is based on the DROID FileFormat entity, but simplified. Other format registries could be supported too.

    Note that DROID also provides: 'has priority over' (good for doing PP) and 'signatures' (good for doing PC) but as this is meant to be a simple, interoperable type identifier system, this extra information (which is more oriented to specific use contexts) is not included here.

    Types are identified by URIs. As we are currently based on PRONOM, these URIs will be PRONOM info:pronom/fmt/XX URIs. By using these URIs, we retain the ability to add further registries in the future without changing any of this code. @author Andy Jackson @author Fabian Steeg

  • fr.inria.jfresnel.Format
  • gov.nysenate.openleg.util.RequestUtils.FORMAT
  • infosapient.util.Format
    A class for formatting numbers that follows printf conventions. Also implements C-like atoi and atof functions @deprecated -2001.04.11- eventually to be replaced by java.text.NumberFormat - EMM @author Cay Horstmann Formats the number following printf conventions. Main limitation: Can only handle one format parameter at a time Use multiple Format objects to format more than one number @param s the format string following printf conventionsThe string has a prefix, a format code and a suffix. The prefix and suffix become part of the formatted output. The format code directs the formatting of the (single) parameter to be formatted. The code has the following structure @exception IllegalArgumentException if bad format
  • java.text.Format
    Format is an abstract base class for formatting locale-sensitive information such as dates, messages, and numbers.

    Format defines the programming interface for formatting locale-sensitive objects into Strings (the format method) and for parsing Strings back into objects (the parseObject method).

    Generally, a format's parseObject method must be able to parse any string formatted by its format method. However, there may be exceptional cases where this is not possible. For example, a format method might create two adjacent integer numbers with no separator in between, and in this case the parseObject could not tell which digits belong to which number.


    The Java Platform provides three specialized subclasses of Format-- DateFormat, MessageFormat, and NumberFormat--for formatting dates, messages, and numbers, respectively.

    Concrete subclasses must implement three methods:

    1. format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
    2. formatToCharacterIterator(Object obj)
    3. parseObject(String source, ParsePosition pos)
    These general methods allow polymorphic parsing and formatting of objects and are used, for example, by MessageFormat. Subclasses often also provide additional format methods for specific input types as well as parse methods for specific result types. Any parse method that does not take a ParsePosition argument should throw ParseException when no text in the required format is at the beginning of the input text.

    Most subclasses will also implement the following factory methods:

    1. getInstance for getting a useful format object appropriate for the current locale
    2. getInstance(Locale) for getting a useful format object appropriate for the specified locale
    In addition, some subclasses may also implement other getXxxxInstance methods for more specialized control. For example, the NumberFormat class provides getPercentInstance and getCurrencyInstance methods for getting specialized number formatters.

    Subclasses of Format that allow programmers to create objects for locales (with getInstance(Locale) for example) must also implement the following class method:

     public static Locale[] getAvailableLocales() 

    And finally subclasses may define a set of constants to identify the various fields in the formatted output. These constants are used to create a FieldPosition object which identifies what information is contained in the field and its position in the formatted result. These constants should be named item_FIELD where item identifies the field. For examples of these constants, see ERA_FIELD and its friends in {@link DateFormat}.


    Formats are generally not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally. @see java.text.ParsePosition @see java.text.FieldPosition @see java.text.NumberFormat @see java.text.DateFormat @see java.text.MessageFormat @version 1.37, 12/03/05 @author Mark Davis

  • javax.media.Format
    sun.com/products/java-media/jmf/2.1.1/apidocs/javax/media/Format.html" target="_blank">this class in the JMF Javadoc. Coding complete. @author Ken Larson
  • jimm.datavision.field.Format
    A format describes how to display a field. It specifies font family name, size, attributes (bold, italic, underline, wrap), alignment, and print format.

    If a field's value is null, then the getter returns the value of the report's default field's format (which will never be null. @author Jim Menard, jimm@io.com

  • mondrian.util.Format
    postate.com/programming/vb-format.html">here. We have made the following enhancements to this specification:

    One format object can be used to format multiple values, thereby amortizing the time required to parse the format string. Example:

     double[] values; Format format = new Format("##,##0.###;(##,##0.###);;Nil"); for (int i = 0; i < values.length; i++) { System.out.println("Value #" + i + " is " + format.format(values[i])); } 

    Still to be implemented:

    @author jhyde @version $Id: //open/mondrian-release/3.2/src/main/mondrian/util/Format.java#10 $
  • net.pms.formats.Format
    Abstract class to store known information about a given format.
  • net.sf.block.Format
  • nexj.core.meta.integration.Format
    Message format metadata.
  • org.apache.click.util.Format
    Provides the default object for formatting the display of model objects in Velocity templates and JSP pages.

    For Velocity templates a Format object is added to the Velocity Context using the name "format", while for JSP pages an instance is added as a request attribute using the same key.

    For example the following Page code adds a date to the model:

     public void onGet() { Date date = order.deliveryDate(); addModel("deliveryDate", date); } 
    In the page template we use the format object:
     Delivery date: $format.date($deliveryDate, "dd MMM yyyy") 
    Which renders the output as:
    Delivery date: 21 Jan 2004
    The custom format class can be defined in the "click.xml" configuration file using the syntax:
     <format classname="com.mycorp.utils.MyFormat"/> 
    After a Page is created its format property is set. The ClickServlet will then add this property to the Velocity Context.

    When subclassing Format ensure it is light weight object, as a new format object will be created for every new Page. @see PageImports

  • org.apache.cxf.management.web.logging.atom.converter.StandardConverter.Format
  • org.apache.felix.inventory.Format
    Java 1.4 compatible enumeration of formats used for inventory printing.

    {@link InventoryPrinter} services indicate supported formats listing any ofthese values in their {@link InventoryPrinter#FORMAT} serviceproperties.

    Requestors of inventory printing indicate the desired output format by specifying the respective constant when calling the {@link InventoryPrinter#print(java.io.PrintWriter,Format,boolean)} method.

    Round-tripping is guaranteed between the {@link #toString()} and{@link #valueOf(String)} methods.

  • org.apache.maven.archetype.common.util.Format
    Class to encapsulate XMLOutputter format options. Typical users can use the standard format configurations obtained by {@link #getRawFormat} (no whitespace changes),{@link #getPrettyFormat} (whitespace beautification), and{@link #getCompactFormat} (whitespace normalization).

    Several modes are available to effect the way textual content is printed. See the documentation for {@link TextMode} for details. @author Jason Hunter @version $Revision: 1.10 $, $Date: 2004/09/07 06:37:20 $

  • org.apache.pdfbox.preflight.Format
  • org.auraframework.system.AuraContext.Format
  • org.auraframework.system.Parser.Format
  • org.easetech.easytest.annotation.Format
  • org.geomajas.plugin.printing.document.Document.Format
  • org.geoserver.w3ds.utilities.Format
  • org.jboss.arquillian.persistence.core.data.descriptor.Format
  • org.jboss.arquillian.persistence.data.descriptor.Format
  • org.jboss.arquillian.persistence.dbunit.data.descriptor.Format
  • org.jclouds.ibm.smartcloud.domain.StorageOffering.Format
  • org.jdom.output.Format
    Class to encapsulate XMLOutputter format options. Typical users can use the standard format configurations obtained by {@link #getRawFormat} (no whitespace changes),{@link #getPrettyFormat} (whitespace beautification), and{@link #getCompactFormat} (whitespace normalization).

    Several modes are available to effect the way textual content is printed. See the documentation for {@link TextMode} for details. @version $Revision: 1.14 $, $Date: 2009/07/23 05:54:23 $ @author Jason Hunter

  • org.jdom2.output.Format
    A non-public utility class similar to StringBuilder but optimized for XML parsing where the common case is that you get only one chunk of characters per text section. TextBuffer stores the first chunk of characters in a String, which can just be returned directly if no second chunk is received. Subsequent chunks are stored in a supplemental char array (like StringBuilder uses). In this case, the returned text will be the first String chunk, concatenated with the subsequent chunks stored in the char array. This provides optimal performance in the common case, while still providing very good performance in the uncommon case. Furthermore, avoiding StringBuilder means that no extra unused char array space will be kept around after parsing is through. @author Bradley S. Huffman @author Alex Rosen
  • org.jruby.pg.internal.messages.Format
  • org.kitesdk.data.Format

    The data format used for encoding the data in a {@link Dataset}.

    There are a small number of formats provided. The default is {@link Formats#AVRO}, which is used when you do not explicitly configure a format.

    @since 0.2.0
  • org.mizartools.dli.Format
  • org.neo4j.shell.tools.imp.format.Format
    @author mh @since 17.01.14
  • org.opengis.coverage.grid.Format
    is.org/docs/01-004.pdf">Grid Coverage specification 1.0 @author Martin Desruisseaux (IRD) @since GeoAPI 2.0
  • org.openoffice.xmerge.converter.xml.sxc.Format
    This class specifies the format for a given spreadsheet cell. @author Mark Murnane @author Martin Maher (Extended Style Support)
  • org.redline_rpm.header.Format
  • org.simpleframework.xml.stream.Format
  • org.zkoss.zss.model.Format
    {@link Cell} format of the spreadsheet. @author henrichen
  • uk.gov.nationalarchives.droid.profile.referencedata.Format
    @author rflitcroft

  • Examples of LONI.tree.module.format.Format

        //create the String parameter containing the script name for the
        //setup module.
        LONI.tree.module.Parameter setupScript = new LONI.tree.module.Parameter();
        setupScript.setFileFormat(new Format());
        Value scriptValue = new Value();
        //Create the String Parameter that contains the Galaxy API Key
        //for the setupScript Module.
        LONI.tree.module.Parameter setupAPI = new LONI.tree.module.Parameter();
        setupAPI.setFileFormat(new Format());
        setupAPI.setName("Galaxy API Key");
        Value apiValue = new Value();
         * Initialize and add the String parameter that contains the Galaxy Root Directory
         * to the setup Module. This directory is used to call python scripts inside Galaxy.
        LONI.tree.module.Parameter setupGalRootDir = new LONI.tree.module.Parameter();
        setupGalRootDir.setFileFormat(new Format());
        setupGalRootDir.setName("Galaxy Root Dir");
        Value setupGalRootDirValue = new Value();
         * Initialize and add String parameter containing Galaxy server url to setup module.
        LONI.tree.module.Parameter setupGalURLDir = new LONI.tree.module.Parameter();
        setupGalURLDir.setFileFormat(new Format());
        setupGalURLDir.setName("Galaxy URL");
        Value setupGalaxyURLValue = new Value();
         * Initialize and add String cookie parameter containing cookie for website
         * to setup module.
        LONI.tree.module.Parameter setupCookie = new LONI.tree.module.Parameter();
        setupCookie.setFileFormat(new Format());
        setupCookie.setName("Cookie for galaxy site");
        Value setupCookieValue = new Value();
         * Initialize and fill in the run module.
        runModule = new Module();
        runContext = new LoniContext();
        runModule.setLocation(ConverterConstants.LOCALHOST_PATH + ConverterConfig.PYTHON_BIN);
        //Add the String script parameter containing the name of the script to run.
        LONI.tree.module.Parameter runScript = new LONI.tree.module.Parameter();
        runScript.setFileFormat(new Format());
        scriptValue = new Value();
        //Create the workflow output to the run module. This output contains
        //a functional galaxy workflow that was generated from the loni pipeline
        LONI.tree.module.Output runWorkflow = new LONI.tree.module.Output();
        runWorkflow.setFormat(new Format());
        FileType runFileType = new FileType();
        runWorkflow.setName("Workflow Data");
        //Add the setup and run modules to the setup and run contexts respectively.
         //used to place run, setup modules
        int totalY=0; // running sum of y values.
        int leftX = -1; //furthest left x position
        int rightX = 0; //furthest right y position
        int spacing = 200; //spacing between modules.
        // TODO Auto-generated method stub
        for(Step s : workflow.getSteps()){
          //visit each step in the workflow
          Pair<GraphObject,LoniEnvironment> step = stepVisitor.visit(s, new LoniContext());
          //add the returned environment to the pipeline environment.
          //add the returned graphobject to the pipeline modulegroup
          //add the step's y value to the running sum of y values.
          totalY += s.getPosition().getFromTop();
          //update furthest left position
          if(leftX < 0 || leftX > s.getPosition().getFromLeft())
            leftX =s.getPosition().getFromLeft();
          //update furthest right position
          if(rightX < s.getPosition().getFromLeft())
        //calculate the average y value from the total.
        int avgY = totalY;
        if(workflow.getSteps().size() > 0)
          avgY = totalY / workflow.getSteps().size();
        //place the setup module futhest to the left, at the
        //average y value.
        setupModule.setPosY(avgY + spacing);
        //Place the run module furthest to the right, at the
        //average y value.
        runModule.setPosX(rightX+ spacing);
        //add the run, setupmodule
         * Connect module outputs that are not connected to anything to the
         * run module.
        int conncount=1;
         * For each module output
        for(String id : le.getOutputAliases().keySet()){
          boolean isConnected = false;
          //check if any connections link the output of that module
          //to the input of some other module.
          for(Connection c : le.getConnections()){
              isConnected = true;
          //If the output is not connected to any other modules.
          if(isConnected == false){
            Connection runConn; //connection to the run module
            //Create a new parameter for the runmodule that is connected
            //to the connectionless output.
            LONI.tree.module.Parameter runInput = new LONI.tree.module.Parameter();
            runInput.setFileFormat(new Format());
            runFileType = new FileType();
    View Full Code Here

    Examples of buri.ddmsence.ddms.format.Format

            _pointOfContacts.add(new PointOfContact(components.get(i)));

          // Format Set
          component = getChild(Format.getName(version));
          if (component != null)
            _format = new Format(component);

          // Summary Set
          components = element.getChildElements(SubjectCoverage.getName(version), namespace);
          for (int i = 0; i < components.size(); i++)
            _subjectCoverages.add(new SubjectCoverage(components.get(i)));
    View Full Code Here

    Examples of ca.carleton.gcrc.couch.export.ExportUtils.Format

      protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // Ignore path. Allows client to set any download file name
        // Parse format
        Format format = null;
          String formatStr = request.getParameter("format");
          if( null == formatStr ) {
            format = Format.GEOJSON;
          } else {
            for(Format f : Format.values()){
              if( f.matches(formatStr) ){
                format = f;
          if( null == format ) {
            Exception e = new Exception("Unknown format");
          logger.debug("Export Format: "+format.name());
        // Parse filter
        Filter filter = null;
          String filterStr = request.getParameter("filter");
          if( null == filterStr ) {
            filter = Filter.ALL;
          } else {
            for(Filter f : Filter.values()){
              if( f.matches(filterStr) ){
                filter = f;
          if( null == filter ) {
            Exception e = new Exception("Unknown filter");
          logger.debug("Export Filter: "+filter.name());
        // Parse method
        Method method = null;
          String methodStr = request.getParameter("method");
          if( null != methodStr ) {
            for(Method m : Method.values()){
              if( m.matches(methodStr) ){
                method = m;
          if( null == method ) {
            Exception e = new Exception("Unknown method");
          logger.debug("Export Method: "+method.name());
        // Parse identifier
        String identifier = null;
        List<String> identifiers = new Vector<String>();
          String[] ids = request.getParameterValues("name");
          if( null != ids ) {
            for(String id : ids){
          if( identifiers.size() > 0 ) {
            identifier = identifiers.get(0);
          if( null == identifier ) {
            Exception e = new Exception("Unknown name");
          logger.debug("Export Name: "+identifier);
        // Build doc retrieval based on method
        DocumentRetrieval docRetrieval = null;
        if( Method.LAYER == method ) {
          try {
            docRetrieval = DocumentRetrievalLayer.create(configuration.getCouchDb(), identifier);
          } catch (Exception e) {
            throw new ServletException("Problem retrieving documents from layer: "+identifier,e);
        } else if( Method.SCHEMA == method ) {
          try {
            docRetrieval = DocumentRetrievalSchema.create(configuration.getCouchDb(), identifier);
          } catch (Exception e) {
            throw new ServletException("Problem retrieving documents from schema: "+identifier,e);
        } else if( Method.DOC_ID == method ) {
          try {
            docRetrieval = DocumentRetrievalId.create(configuration.getCouchDb(), identifiers);
          } catch (Exception e) {
            throw new ServletException("Problem retrieving documents from doc ids: "+identifiers,e);
        } else {
          throw new ServletException("Do not know how to handle method: "+method.name());
        // Build document filter based on filter type
        DocumentFilter docFilter = null;
          docFilter = new DocumentFilterGeometryType(filter);
        ExportFormat outputFormat = null;
        if( Format.GEOJSON == format ) {
          try {
            SchemaCache schemaCache = new SchemaCacheCouchDb(configuration.getCouchDb());
            outputFormat = new ExportFormatGeoJson(schemaCache, docRetrieval, docFilter);
          } catch (Exception e) {
            throw new ServletException("Problem setting up format: "+format.name(),e);
        } else {
          throw new ServletException("Do not know how to handle format: "+format.name());
        String charEncoding = outputFormat.getCharacterEncoding();
        if( null != charEncoding ) {
          response.setCharacterEncoding( charEncoding );
    View Full Code Here

    Examples of cascading.lingual.catalog.Format

      protected boolean performRename( PlatformBroker platformBroker )
        SchemaCatalog catalog = platformBroker.getSchemeCatalog();
        String schemaName = getOptions().getSchemaName();
        Format oldFormat = getSource( platformBroker );
        Format newFormat = Format.getFormat( getOptions().getRenameName() );

        if( oldFormat == null )
          return false;

        return catalog.renameFormat( schemaName, oldFormat, newFormat );
    View Full Code Here

    Examples of ch.entwine.weblounge.common.impl.util.doc.Format

        docs.setTitle("Weblounge Workbench");

        // GET /edit/{page}/{composer}/{pageletindex}
        Endpoint getPageletEditor = new Endpoint("/edit/{page}/{composer}/{pageletindex}", Method.GET, "getpageleteditor");
        getPageletEditor.setDescription("Returns the editor for the given pagelet");
        getPageletEditor.addFormat(new Format("xml", null, null));
        getPageletEditor.addStatus(ok("the pagelet was found and it's editing information is returned"));
        getPageletEditor.addStatus(notFound("the page, the composer or the pagelet were not found"));
        getPageletEditor.addStatus(serviceUnavailable("the site is temporarily offline"));
        getPageletEditor.addPathParameter(new Parameter("page", Parameter.Type.String, "The page uri"));
        getPageletEditor.addPathParameter(new Parameter("composer", Parameter.Type.String, "The composer identifier"));
        getPageletEditor.addPathParameter(new Parameter("pageletindex", Parameter.Type.String, "The pagelet's index within the composer (0 based)"));
        getPageletEditor.addOptionalParameter(new Parameter("language", Parameter.Type.String, "The language id"));
        getPageletEditor.setTestForm(new TestForm());
        docs.addEndpoint(Endpoint.Type.READ, getPageletEditor);
        Endpoint getRenderer = new Endpoint("/renderer/{page}/{composer}/{pageletindex}", Method.GET, "getrenderer");
        getRenderer.setDescription("Returns the renderer for the given pagelet");
        getRenderer.addFormat(new Format("html", null, null));
        getRenderer.addStatus(ok("the pagelet was found and it's renderer is returned"));
        getRenderer.addStatus(notFound("the page, the composer, the pagelet or the renderer were not found"));
        getRenderer.addStatus(serviceUnavailable("the site is temporarily offline"));
        getRenderer.addPathParameter(new Parameter("page", Parameter.Type.String, "The page uri"));
        getRenderer.addPathParameter(new Parameter("composer", Parameter.Type.String, "The composer identifier"));
        getRenderer.addPathParameter(new Parameter("pageletindex", Parameter.Type.String, "The pagelet's index within the composer (0 based)"));
        getRenderer.addOptionalParameter(new Parameter("language", Parameter.Type.String, "The language id"));
        getRenderer.setTestForm(new TestForm());
        docs.addEndpoint(Endpoint.Type.READ, getRenderer);

        // GET /suggest/subjects/{hint}
        Endpoint suggestSubjects = new Endpoint("/suggest/subjects/{seed}", Method.GET, "suggestsubjects");
        suggestSubjects.setDescription("Returns suggestions for subjects based on the given seed");
        suggestSubjects.addFormat(new Format("xml", null, null));
        suggestSubjects.addStatus(ok("suggestions based on the seed are returned"));
        suggestSubjects.addStatus(serviceUnavailable("the site is temporarily offline"));
        suggestSubjects.addPathParameter(new Parameter("seed", Parameter.Type.String, "The seed on which suggestions are based"));
        suggestSubjects.addOptionalParameter(new Parameter("limit", Parameter.Type.String, "The maximum number of suggestions"));
        suggestSubjects.addOptionalParameter(new Parameter("highlight", Parameter.Type.String, "The tag name used to highlight matches"));
    View Full Code Here

    Examples of com.asakusafw.runtime.stage.directio.StringTemplate.Format

                                "Unknown property \"{1}\": {0}",
                    String argument = ph.formatString;
                    Format format = findFormat(property, argument);
                    if (format == null) {
                        throw new IllegalArgumentException(MessageFormat.format(
                                "Invalid format \"{1}\": {0}",
                                argument == null ? "" : argument));
                    try {
                        format.check(property.getType(), argument);
                    } catch (IllegalArgumentException e) {
                        throw new IllegalArgumentException(MessageFormat.format(
                                "Invalid format \"{1}\": {0}",
    View Full Code Here

    Examples of com.badlogic.gdx.graphics.Pixmap.Format

              if (line.trim().length() == 0)
                pageImage = null;
              else if (pageImage == null) {
                FileHandle file = imagesDir.child(line);

                Format format = Format.valueOf(readValue(reader));

                TextureFilter min = TextureFilter.valueOf(tuple[0]);
                TextureFilter max = TextureFilter.valueOf(tuple[1]);
    View Full Code Here

    Examples of com.cfinkel.reports.Format

            int i = 1;

            // formats:
            try {
                for (FormatElement formatElement : outputElement.getFormat()) {
                    Format format = new Format(formatElement.getValue());
            } catch (Exception e) {
                log.error("exception adding formats",e);
                throw new BadReportSyntaxException("Exception adding formats");
    View Full Code Here

    Examples of com.citytechinc.cq.component.annotations.widgets.rte.Format


      private RtePlugin buildFormatPlugin(RichTextEditor rteAnnotation) {

        if (rteAnnotation.format().length > 0) {
          Format formatAnnotation = rteAnnotation.format()[0];
          List<String> features = new ArrayList<String>();

          if (formatAnnotation.bold()) {

          if (formatAnnotation.italic()) {

          if (formatAnnotation.underline()) {
          RtePluginParameters widgetParameters = new RtePluginParameters();
    View Full Code Here

    Examples of com.cloudera.cdk.data.Format

        } catch (IOException ex) {
          throw new DatasetWriterException("Could not create path:" + path, ex);

        final Format format = descriptor.getFormat();
        final Path file = new Path(path, uniqueFilename(descriptor.getFormat()));

        if (Formats.PARQUET.equals(format)) {
          return new ParquetFileSystemDatasetWriter(fs, file, descriptor.getSchema());
        } else if (Formats.AVRO.equals(format)) {
    View Full Code Here
    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.