Package org.eclipse.xtext.build
Class Source2GeneratedMapping
- java.lang.Object
-
- org.eclipse.xtext.build.Source2GeneratedMapping
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
public class Source2GeneratedMapping extends java.lang.Object implements java.io.Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Source2GeneratedMapping()
Source2GeneratedMapping(com.google.common.collect.Multimap<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> source2generated, com.google.common.collect.Multimap<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> generated2source, java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> generated2OutputConfigName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSource2Generated(org.eclipse.emf.common.util.URI source, org.eclipse.emf.common.util.URI generated)
Add a mapping in thedefault output
.void
addSource2Generated(org.eclipse.emf.common.util.URI source, org.eclipse.emf.common.util.URI generated, java.lang.String outputCfgName)
Source2GeneratedMapping
copy()
void
deleteGenerated(org.eclipse.emf.common.util.URI generated)
Remove the generated file from this mapping.java.util.Set<org.eclipse.emf.common.util.URI>
deleteSource(org.eclipse.emf.common.util.URI source)
Mark the source as deleted and return all the former generated uris.java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String>
deleteSourceAndGetOutputConfigs(org.eclipse.emf.common.util.URI source)
Mark the source as deleted and return all the former generated uris.java.util.List<org.eclipse.emf.common.util.URI>
getAllGenerated()
Return all the generated resources.java.util.List<org.eclipse.emf.common.util.URI>
getGenerated(org.eclipse.emf.common.util.URI source)
Return all the generated resources for the given source.java.lang.String
getOutputConfigName(org.eclipse.emf.common.util.URI generated)
Get the output configuration that led to the given generated URI.java.util.List<org.eclipse.emf.common.util.URI>
getSource(org.eclipse.emf.common.util.URI generated)
Return all the source resources for the given generated resource.void
readExternal(java.io.ObjectInput in)
void
removeSource2Generated(org.eclipse.emf.common.util.URI source, org.eclipse.emf.common.util.URI generated)
void
writeExternal(java.io.ObjectOutput out)
-
-
-
Constructor Detail
-
Source2GeneratedMapping
public Source2GeneratedMapping()
-
Source2GeneratedMapping
public Source2GeneratedMapping(com.google.common.collect.Multimap<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> source2generated, com.google.common.collect.Multimap<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> generated2source, java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> generated2OutputConfigName)
-
-
Method Detail
-
copy
public Source2GeneratedMapping copy()
-
addSource2Generated
public void addSource2Generated(org.eclipse.emf.common.util.URI source, org.eclipse.emf.common.util.URI generated)
Add a mapping in thedefault output
.
-
addSource2Generated
public void addSource2Generated(org.eclipse.emf.common.util.URI source, org.eclipse.emf.common.util.URI generated, java.lang.String outputCfgName)
-
removeSource2Generated
public void removeSource2Generated(org.eclipse.emf.common.util.URI source, org.eclipse.emf.common.util.URI generated)
-
deleteSource
public java.util.Set<org.eclipse.emf.common.util.URI> deleteSource(org.eclipse.emf.common.util.URI source)
Mark the source as deleted and return all the former generated uris.
-
deleteSourceAndGetOutputConfigs
public java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> deleteSourceAndGetOutputConfigs(org.eclipse.emf.common.util.URI source)
Mark the source as deleted and return all the former generated uris.
-
deleteGenerated
public void deleteGenerated(org.eclipse.emf.common.util.URI generated)
Remove the generated file from this mapping.
-
getOutputConfigName
public java.lang.String getOutputConfigName(org.eclipse.emf.common.util.URI generated)
Get the output configuration that led to the given generated URI.
-
getGenerated
public java.util.List<org.eclipse.emf.common.util.URI> getGenerated(org.eclipse.emf.common.util.URI source)
Return all the generated resources for the given source.
-
getSource
public java.util.List<org.eclipse.emf.common.util.URI> getSource(org.eclipse.emf.common.util.URI generated)
Return all the source resources for the given generated resource.
-
getAllGenerated
public java.util.List<org.eclipse.emf.common.util.URI> getAllGenerated()
Return all the generated resources.
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
-