congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JAXRConstants$Element.forName
Code IndexAdd Tabnine to your IDE (free)

How to use
forName
method
in
org.jboss.as.jaxr.extension.JAXRConstants$Element

Best Java code snippets using org.jboss.as.jaxr.extension.JAXRConstants$Element.forName (Showing top 3 results out of 315)

origin: wildfly/wildfly

private List<ModelNode> parseProperties(XMLExtendedStreamReader reader, PathAddress address) throws XMLStreamException {
  requireNoAttributes(reader);
  List<ModelNode> result = new ArrayList<ModelNode>();
  // Handle properties
  while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
    switch (Namespace.forUri(reader.getNamespaceURI())) {
      case JAXR_1_1: {
        final Element element = Element.forName(reader.getLocalName());
        switch (element) {
          case PROPERTY: {
            ModelNode propNode = parseProperty(reader, address);
            result.add(propNode);
            break;
          }
          default:
            throw unexpectedElement(reader);
        }
      }
    }
  }
  return result;
}
origin: wildfly/wildfly

private void readElement1_1(XMLExtendedStreamReader reader, List<ModelNode> operations) throws XMLStreamException {
  final PathAddress address = PathAddress.pathAddress(JAXRExtension.SUBSYSTEM_PATH);
  final ModelNode addOp = Util.createAddOperation(address);
  operations.add(addOp);
  List<ModelNode> propertiesOps = null;
  while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
    switch (Namespace.forUri(reader.getNamespaceURI())) {
      case JAXR_1_1: {
        final Element element = Element.forName(reader.getLocalName());
        switch (element) {
          case CONNECTION_FACTORY: {
            parseBinding1_1(reader, addOp);
            break;
          }
          case PROPERTIES: {
            propertiesOps = parseProperties(reader, address);
            break;
          }
          default:
            throw unexpectedElement(reader);
        }
      }
    }
  }
  if (propertiesOps != null) {
    operations.addAll(propertiesOps);
  }
}
origin: wildfly/wildfly

private void readElement1_0(XMLExtendedStreamReader reader, List<ModelNode> operations) throws XMLStreamException {
  final PathAddress address = PathAddress.pathAddress(JAXRExtension.SUBSYSTEM_PATH);
  final ModelNode addOp = Util.createAddOperation(address);
  operations.add(addOp);
  List<ModelNode> propertiesOps = null;
  while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
    switch (Namespace.forUri(reader.getNamespaceURI())) {
      case JAXR_1_0: {
        final Element element = Element.forName(reader.getLocalName());
        switch (element) {
          case CONNECTION_FACTORY: {
            parseBinding1_0(reader, addOp);
            break;
          }
          case JUDDI_SERVER: {
            propertiesOps = parseJuddiServer(reader, address);
            break;
          }
          default:
            throw unexpectedElement(reader);
        }
      }
    }
  }
  if (propertiesOps != null) {
    operations.addAll(propertiesOps);
  }
}
org.jboss.as.jaxr.extensionJAXRConstants$ElementforName

Popular methods of JAXRConstants$Element

  • getLocalName

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
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