Codota Logo
CodeDependency
Code IndexAdd Codota to your IDE (free)

How to use
CodeDependency
in
com.gs.obevo.api.appdata

Best Java code snippets using com.gs.obevo.api.appdata.CodeDependency (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: goldmansachs/obevo

  @Override
  public CodeDependency value(String target, CodeDependencyType codeDependencyType) {
    return new CodeDependency(target, codeDependencyType);
  }
}, CodeDependencyType.EXPLICIT));
origin: goldmansachs/obevo

T dependencyVertex = null;
for (ChangeIndex<T> changeIndex : changeIndexes) {
  dependencyVertex = changeIndex.retrieve(change.getChangeKey().getObjectKey().getSchema(), dependency.getTarget());
  if (dependencyVertex != null) {
    if (LOG.isTraceEnabled()) {
  LOG.trace("Dependency not found; likely due to not enriching the full graph in source. Should be OK to ignore: {} - {}", dependency, change);
} else {
  graph.addEdge(dependencyVertex, changeGroup, new DependencyEdge(dependencyVertex, changeGroup, dependency.getCodeDependencyType()));
origin: com.goldmansachs.obevo/obevo-core

T dependencyVertex = null;
for (ChangeIndex<T> changeIndex : changeIndexes) {
  dependencyVertex = changeIndex.retrieve(change.getChangeKey().getObjectKey().getSchema(), dependency.getTarget());
  if (dependencyVertex != null) {
    if (LOG.isTraceEnabled()) {
  LOG.trace("Dependency not found; likely due to not enriching the full graph in source. Should be OK to ignore: {} - {}", dependency, change);
} else {
  graph.addEdge(dependencyVertex, changeGroup, new DependencyEdge(dependencyVertex, changeGroup, dependency.getCodeDependencyType()));
origin: goldmansachs/obevo

@Test
public void readFileWithMetaAndDrop() throws Exception {
  RerunnableChangeParser parser = new RerunnableChangeParser();
  String fileContent = "\n" +
      "//// METADATA dependencies=\"abc,123\"\n" +
      "mycontent\n" +
      "line2\n" +
      "//// DROP_COMMAND\n" +
      "mydrop" +
      "";
  ImmutableList<ChangeInput> changes = parser.value(mock(ChangeType.class), null, fileContent, objectName, "schema", null);
  Verify.assertSize(1, changes);
  ChangeInput change = changes.get(0);
  assertEquals(objectName, change.getObjectName());
  assertEquals("mycontent\nline2", change.getContent());
  assertEquals(Sets.immutable.with(new CodeDependency("abc", CodeDependencyType.EXPLICIT), new CodeDependency("123", CodeDependencyType.EXPLICIT)), change.getCodeDependencies());
  assertEquals("mydrop", change.getDropContent());
}
com.gs.obevo.api.appdataCodeDependency

Most used methods

  • <init>
  • getCodeDependencyType
  • getTarget

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • String (java.lang)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now