Skip to content

Package: SchemaWrapper

SchemaWrapper

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2015 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Stefan Dirix - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.emf2web.exporter;
15:
16: /**
17: * A wrapper for the pure generated schemas.
18: *
19: * @author Stefan Dirix
20: *
21: */
22: public interface SchemaWrapper {
23:         /**
24:          * Wraps the given string depending on the given type.
25:          *
26:          * @param toWrap
27:          * The content which shall be wrapped.
28:          * @param type
29:          * The type which depicts how the wrap should look like.
30:          * @return
31:          *                 The wrapped {@code toWrap}.
32:          */
33:         String wrap(String toWrap, String type);
34:
35:         /**
36:          * Depicts a proposal for the name of the wrapped content.
37:          *
38:          * @return
39:          *                 A name for the wrapped content.
40:          */
41:         String getName();
42:
43:         /**
44:          * Depicts a proposal for an file extension for the wrapped content.
45:          *
46:          * @return
47:          *                 A file extension for the wrapped content.
48:          */
49:         String getFileExtension();
50: }