public class ClosureUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ClosureUtils.IClosureIOHelper
Helper interface to load/save units of closure.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLOSURE_EXTENSION
File extension of closure manifest
|
static java.lang.String |
CLOSURE_MANIFEST_CONTENT_TYPE
Content type associated with *.ecx files
|
static java.lang.String |
INPUT_PROP
Additional property of LogicResource to provide method for loading closure resources
|
static java.lang.String |
IS_CLOSURE_ROOT_PROP
Additional property of LogicResource indicating that LogicResource represents closure root file
|
static java.lang.String |
ROOT_RESOURCES_PROP
Additional property of LogicResource which returns list of root resources of closure
|
Constructor and Description |
---|
ClosureUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
calcCRC(java.io.InputStream in) |
static java.lang.String |
dumpContent(java.io.InputStream in) |
static org.eclipse.emf.ecore.resource.Resource[] |
getClosureRootResources(org.eclipse.emf.ecore.resource.Resource resource)
Return root resources of closure
|
static boolean |
isClosureManifest(org.eclipse.emf.common.util.URI uri)
Returns true if URI corresponds to closure manifest file
|
static boolean |
isClosureRoot(org.eclipse.emf.ecore.resource.Resource resource)
Check if LogicResource is a closure root
|
public static final java.lang.String CLOSURE_EXTENSION
public static final java.lang.String IS_CLOSURE_ROOT_PROP
public static final java.lang.String INPUT_PROP
public static final java.lang.String ROOT_RESOURCES_PROP
public static final java.lang.String CLOSURE_MANIFEST_CONTENT_TYPE
public static boolean isClosureManifest(org.eclipse.emf.common.util.URI uri)
uri
- public static boolean isClosureRoot(org.eclipse.emf.ecore.resource.Resource resource)
resource
- public static org.eclipse.emf.ecore.resource.Resource[] getClosureRootResources(org.eclipse.emf.ecore.resource.Resource resource)
resource
- public static java.lang.String dumpContent(java.io.InputStream in)
public static java.lang.String calcCRC(java.io.InputStream in)