Tabnine Logo
EnumRow.getContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getContext
method
in
org.kie.guvnor.enums.client.editor.EnumRow

Best Java code snippets using org.kie.guvnor.enums.client.editor.EnumRow.getContext (Showing top 6 results out of 315)

origin: org.kie.guvnor/guvnor-enum-editor-client

  @Override
  public String getValue( final EnumRow enumRow ) {
    return enumRow.getContext();
  }
};
origin: org.kie.guvnor/guvnor-enum-editor-client

@Test
public void testParsing5() {
  //Space before colon omitted
  final String content = "'Fact.field': ['a', 'b']";
  final List<EnumRow> enums = EnumParser.parseEnums( content );
  assertFalse( enums.isEmpty() );
  assertEquals( 1,
         enums.size() );
  assertEquals( "Fact",
         enums.get( 0 ).getFactName() );
  assertEquals( "field",
         enums.get( 0 ).getFieldName() );
  assertEquals( "['a', 'b']",
         enums.get( 0 ).getContext() );
}
origin: org.kie.guvnor/guvnor-enum-editor-client

@Test
public void testParsing4() {
  //Spaces omitted around colon
  final String content = "'Fact.field':['a', 'b']";
  final List<EnumRow> enums = EnumParser.parseEnums( content );
  assertFalse( enums.isEmpty() );
  assertEquals( 1,
         enums.size() );
  assertEquals( "Fact",
         enums.get( 0 ).getFactName() );
  assertEquals( "field",
         enums.get( 0 ).getFieldName() );
  assertEquals( "['a', 'b']",
         enums.get( 0 ).getContext() );
}
origin: org.kie.guvnor/guvnor-enum-editor-client

@Test
public void testParsing1() {
  //Perfectly valid
  final String content = "'Fact.field' : ['a', 'b']";
  final List<EnumRow> enums = EnumParser.parseEnums( content );
  assertFalse( enums.isEmpty() );
  assertEquals( 1,
         enums.size() );
  assertEquals( "Fact",
         enums.get( 0 ).getFactName() );
  assertEquals( "field",
         enums.get( 0 ).getFieldName() );
  assertEquals( "['a', 'b']",
         enums.get( 0 ).getContext() );
}
origin: org.kie.guvnor/guvnor-enum-editor-client

@Test
public void testParsing6() {
  //Space after colon omitted
  final String content = "'Fact.field' :['a', 'b']";
  final List<EnumRow> enums = EnumParser.parseEnums( content );
  assertFalse( enums.isEmpty() );
  assertEquals( 1,
         enums.size() );
  assertEquals( "Fact",
         enums.get( 0 ).getFactName() );
  assertEquals( "field",
         enums.get( 0 ).getFieldName() );
  assertEquals( "['a', 'b']",
         enums.get( 0 ).getContext() );
}
origin: org.kie.guvnor/guvnor-enum-editor-client

@Test
public void testComments() {
  final String content = "'Fact.field' : ['a', 'b']\n"
      + "\n"
      + "#A comment\n"
      + "//Another comment\n";
  final List<EnumRow> enums = EnumParser.parseEnums( content );
  assertFalse( enums.isEmpty() );
  assertEquals( 1,
         enums.size() );
  assertEquals( "Fact",
         enums.get( 0 ).getFactName() );
  assertEquals( "field",
         enums.get( 0 ).getFieldName() );
  assertEquals( "['a', 'b']",
         enums.get( 0 ).getContext() );
}
org.kie.guvnor.enums.client.editorEnumRowgetContext

Popular methods of EnumRow

  • getFactName
  • getFieldName
  • <init>
  • isValid
  • setContext
  • setFactName
  • setFieldName
  • toString

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Kernel (java.awt.image)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Notification (javax.management)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now