Codota Logo
ExtensibleXmlParser.getLocator
Code IndexAdd Codota to your IDE (free)

How to use
getLocator
method
in
org.drools.core.xml.ExtensibleXmlParser

Best Java code snippets using org.drools.core.xml.ExtensibleXmlParser.getLocator (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: kiegroup/jbpm

private Object restoreValue(String text, DataType dataType, ExtensibleXmlParser parser) throws SAXException {
  if (text == null || "".equals(text)) {
    return null;
  }
  if (dataType == null) {
    throw new SAXParseException(
      "Null datatype", parser.getLocator());
  }
  return dataType.readValue(text);
}
origin: kiegroup/jbpm

private Object restoreValue(String text, DataType dataType, ExtensibleXmlParser parser) throws SAXException {
  if (text == null || "".equals(text)) {
    return null;
  }
  if (dataType == null) {
    throw new SAXParseException(
      "Null datatype", parser.getLocator());
  }
  return dataType.readValue(text);
}
origin: kiegroup/jbpm

  node.setMetaData("x", Integer.parseInt(x));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'x' attribute", parser.getLocator());
  node.setMetaData("y", new Integer(y));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'y' attribute", parser.getLocator());
  node.setMetaData("width", new Integer(width));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'width' attribute", parser.getLocator());
  node.setMetaData("height", new Integer(height));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'height' attribute", parser.getLocator());
origin: kiegroup/jbpm

  node.setMetaData("x", new Integer(x));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'x' attribute", parser.getLocator());
  node.setMetaData("y", new Integer(y));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'y' attribute", parser.getLocator());
  node.setMetaData("width", new Integer(width));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'width' attribute", parser.getLocator());
  node.setMetaData("height", new Integer(height));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'height' attribute", parser.getLocator());
  node.setMetaData("color", new Integer(color));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'color' attribute", parser.getLocator());
origin: kiegroup/jbpm

    "Could not find datatype " + name, parser.getLocator());
} catch (InstantiationException e) {
  throw new SAXParseException(
    "Could not instantiate datatype " + name, parser.getLocator());
} catch (IllegalAccessException e) {
  throw new SAXParseException(
    "Could not access datatype " + name, parser.getLocator());
origin: kiegroup/jbpm

  parser.getLocator() );
parser.getLocator() );
origin: kiegroup/jbpm

public Object start(final String uri,
          final String localName,
          final Attributes attrs,
          final ExtensibleXmlParser parser) throws SAXException {
  parser.startElementBuilder( localName,
                attrs );
  Mappable mappable = (Mappable) parser.getParent();
  final String type = attrs.getValue("type");
  emptyAttributeCheck(localName, "type", type, parser);
  final String fromName = attrs.getValue("from");
  emptyAttributeCheck(localName, "from", fromName, parser);
  final String toName = attrs.getValue("to");
  emptyAttributeCheck(localName, "to", toName, parser);
  if ("in".equals(type)) {
    mappable.addInMapping(toName, fromName);
  } else if ("out".equals(type)) {
    mappable.addOutMapping(fromName, toName);
  } else {
    throw new SAXParseException(
      "Unknown mapping type " + type, parser.getLocator());
  }
  return null;
}    

origin: kiegroup/jbpm

public Object start(final String uri,
          final String localName,
          final Attributes attrs,
          final ExtensibleXmlParser parser) throws SAXException {
  parser.startElementBuilder( localName,
                attrs );
  ContextContainer contextContainer = (ContextContainer) parser.getParent();
  final String name = attrs.getValue("name");
  emptyAttributeCheck(localName, "name", name, parser);
  
  VariableScope variableScope = (VariableScope) 
    contextContainer.getDefaultContext(VariableScope.VARIABLE_SCOPE);
  Variable variable = new Variable();
  if (variableScope != null) {
    variable.setName(name);
    List<Variable> variables = variableScope.getVariables();
    if (variables == null) {
      variables = new ArrayList<Variable>();
      variableScope.setVariables(variables);
    }
    variables.add(variable);
  } else {
    throw new SAXParseException(
      "Could not find default variable scope.", parser.getLocator());
  }
  
  return variable;
}    

origin: kiegroup/jbpm

public Object start(final String uri,
          final String localName,
          final Attributes attrs,
          final ExtensibleXmlParser parser) throws SAXException {
  parser.startElementBuilder( localName,
                attrs );
  WorkflowProcessImpl process = (WorkflowProcessImpl) parser.getParent();
  final String name = attrs.getValue("name");
  emptyAttributeCheck(localName, "name", name, parser);
  
  SwimlaneContext swimlaneContext = (SwimlaneContext) 
    process.getDefaultContext(SwimlaneContext.SWIMLANE_SCOPE);
  if (swimlaneContext != null) {
    Swimlane swimlane = new Swimlane();
    swimlane.setName(name);
    swimlaneContext.addSwimlane(swimlane);
  } else {
    throw new SAXParseException(
      "Could not find default swimlane context.", parser.getLocator());
  }
  
  return null;
}    

origin: kiegroup/jbpm

SAXParseException saxpe = new SAXParseException( message, parser.getLocator() );
parser.warning(saxpe);
origin: kiegroup/jbpm

throw new SAXParseException("Unknown exception handler type " + type, parser.getLocator());
origin: org.jbpm/jbpm-flow-builder

private Object restoreValue(String text, DataType dataType, ExtensibleXmlParser parser) throws SAXException {
  if (text == null || "".equals(text)) {
    return null;
  }
  if (dataType == null) {
    throw new SAXParseException(
      "Null datatype", parser.getLocator());
  }
  return dataType.readValue(text);
}
origin: org.jbpm/jbpm-bpmn2

private Object restoreValue(String text, DataType dataType, ExtensibleXmlParser parser) throws SAXException {
  if (text == null || "".equals(text)) {
    return null;
  }
  if (dataType == null) {
    throw new SAXParseException(
      "Null datatype", parser.getLocator());
  }
  return dataType.readValue(text);
}
origin: org.jbpm/jbpm-bpmn2

  node.setMetaData("x", Integer.parseInt(x));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'x' attribute", parser.getLocator());
  node.setMetaData("y", new Integer(y));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'y' attribute", parser.getLocator());
  node.setMetaData("width", new Integer(width));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'width' attribute", parser.getLocator());
  node.setMetaData("height", new Integer(height));
} catch (NumberFormatException exc) {
  throw new SAXParseException("<" + localName + "> requires an Integer 'height' attribute", parser.getLocator());
origin: org.jbpm/jbpm-flow-builder

    "Could not find datatype " + name, parser.getLocator());
} catch (InstantiationException e) {
  throw new SAXParseException(
    "Could not instantiate datatype " + name, parser.getLocator());
} catch (IllegalAccessException e) {
  throw new SAXParseException(
    "Could not access datatype " + name, parser.getLocator());
origin: org.jbpm/jbpm-flow-builder

  parser.getLocator() );
parser.getLocator() );
origin: org.jbpm/jbpm-flow-builder

public Object start(final String uri,
          final String localName,
          final Attributes attrs,
          final ExtensibleXmlParser parser) throws SAXException {
  parser.startElementBuilder( localName,
                attrs );
  Mappable mappable = (Mappable) parser.getParent();
  final String type = attrs.getValue("type");
  emptyAttributeCheck(localName, "type", type, parser);
  final String fromName = attrs.getValue("from");
  emptyAttributeCheck(localName, "from", fromName, parser);
  final String toName = attrs.getValue("to");
  emptyAttributeCheck(localName, "to", toName, parser);
  if ("in".equals(type)) {
    mappable.addInMapping(toName, fromName);
  } else if ("out".equals(type)) {
    mappable.addOutMapping(fromName, toName);
  } else {
    throw new SAXParseException(
      "Unknown mapping type " + type, parser.getLocator());
  }
  return null;
}    

origin: org.jbpm/jbpm-flow-builder

public Object start(final String uri,
          final String localName,
          final Attributes attrs,
          final ExtensibleXmlParser parser) throws SAXException {
  parser.startElementBuilder( localName,
                attrs );
  ContextContainer contextContainer = (ContextContainer) parser.getParent();
  final String name = attrs.getValue("name");
  emptyAttributeCheck(localName, "name", name, parser);
  
  VariableScope variableScope = (VariableScope) 
    contextContainer.getDefaultContext(VariableScope.VARIABLE_SCOPE);
  Variable variable = new Variable();
  if (variableScope != null) {
    variable.setName(name);
    List<Variable> variables = variableScope.getVariables();
    if (variables == null) {
      variables = new ArrayList<Variable>();
      variableScope.setVariables(variables);
    }
    variables.add(variable);
  } else {
    throw new SAXParseException(
      "Could not find default variable scope.", parser.getLocator());
  }
  
  return variable;
}    

origin: org.jbpm/jbpm-flow-builder

public Object start(final String uri,
          final String localName,
          final Attributes attrs,
          final ExtensibleXmlParser parser) throws SAXException {
  parser.startElementBuilder( localName,
                attrs );
  WorkflowProcessImpl process = (WorkflowProcessImpl) parser.getParent();
  final String name = attrs.getValue("name");
  emptyAttributeCheck(localName, "name", name, parser);
  
  SwimlaneContext swimlaneContext = (SwimlaneContext) 
    process.getDefaultContext(SwimlaneContext.SWIMLANE_SCOPE);
  if (swimlaneContext != null) {
    Swimlane swimlane = new Swimlane();
    swimlane.setName(name);
    swimlaneContext.addSwimlane(swimlane);
  } else {
    throw new SAXParseException(
      "Could not find default swimlane context.", parser.getLocator());
  }
  
  return null;
}    

origin: org.jbpm/jbpm-flow-builder

throw new SAXParseException("Unknown exception handler type " + type, parser.getLocator());
org.drools.core.xmlExtensibleXmlParsergetLocator

Popular methods of ExtensibleXmlParser

  • endElementBuilder
  • getCurrent
  • getData
  • getParent
  • startElementBuilder
  • getAttrs
  • getClassLoader
  • getMetaData
  • setClassLoader
  • buildPrintMessage
  • getNamespaceURI
  • getParents
  • getNamespaceURI,
  • getParents,
  • read,
  • setData,
  • setParser,
  • setSemanticModules,
  • warning

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Collectors (java.util.stream)
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