Codota Logo
TypeSchemaHelper.get
Code IndexAdd Codota to your IDE (free)

How to use
get
method
in
org.objectweb.celtix.configuration.impl.TypeSchemaHelper

Best Java code snippets using org.objectweb.celtix.configuration.impl.TypeSchemaHelper.get (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.objectweb.celtix/celtix-common

private void deserializeImports(Document document) {
  TypeSchemaHelper tsh = new TypeSchemaHelper(forceDefaults);
  for (Node nd = document.getDocumentElement().getFirstChild(); nd != null; nd = nd.getNextSibling()) {
    if (Node.ELEMENT_NODE == nd.getNodeType()
      && "configImport".equals(nd.getLocalName())
      && MEATADATA_NAMESPACE_URI.equals(nd.getNamespaceURI())) {
      Element importElement = (Element)nd;
      String location = importElement.getAttribute("location");
      String namespaceURI = importElement.getAttribute("namespace");
      if (null == tsh.get(namespaceURI)) {
        tsh.get(namespaceURI, document.getDocumentURI(), location);
      }
    }
  }
}
origin: org.objectweb.celtix/celtix-common

  private void unmarshalDefaultValue(ConfigurationItemMetadataImpl item, Element data) {
    TypeSchema ts = new TypeSchemaHelper(forceDefaults).get(data.getNamespaceURI());
    Object obj = ts.unmarshalDefaultValue(item, data, doValidate);
    if (null != obj) {
      item.setDefaultValue(obj);
    }
  }
}
origin: org.objectweb.celtix/celtix-rt

TypeSchema ts = new TypeSchemaHelper(true).get(JAXWS_TYPES_URI, null, location);
origin: org.objectweb.celtix/celtix-tools

public static String getClassName(QName typeName, boolean qualified) { 
  String baseType = null;
  TypeSchema ts = null;
  if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(typeName.getNamespaceURI())) {
    baseType = typeName.getLocalPart(); 
  } else {
    ts = new TypeSchemaHelper(false).get(typeName.getNamespaceURI());
    baseType = ts.getXMLSchemaBaseType(typeName.getLocalPart());
  }
  String className = null;
  if (null != baseType) {
    className = JAXBUtils.builtInTypeToJavaType(baseType);
    if (className != null && !qualified) {
      int index = className.lastIndexOf('.');
      if (index >= 0) {
        className = className.substring(index + 1);
      }
    }
  }
  if (null == className) {
    baseType = typeName.getLocalPart();
    className = JAXBUtils.nameToIdentifier(baseType,
                        JAXBUtils.IdentifierType.CLASS);
    if (qualified) {
      className = ts.getPackageName() + "." + className;
    }
  }
  return className;
}
origin: org.objectweb.celtix/celtix-rt

  public Object getValue() {
    Object o = super.getValue();
    if (o instanceof Element) {
      Element el = (Element)o;
      QName type = new QName(el.getNamespaceURI(), el.getLocalName());
      TypeSchema ts = new TypeSchemaHelper(true).get(type.getNamespaceURI());
      if (null == ts) {
        throw new ConfigurationException(new Message("JAXB_PROPERTY_EDITOR_EXC", LOG, type));
      }
      try {
        return ts.unmarshal(type, el);
      } catch (JAXBException ex) {
        Message msg = new Message("JAXB_PROPERTY_EDITOR_EXC", LOG, type);
        throw new ConfigurationException(msg, ex);
      }
    }

    return o;
  }
}
origin: org.objectweb.celtix/celtix-rt

public Object getValue() {
  Object o = super.getValue();
  if (o instanceof Element) {
    Element el = (Element)o;
    QName type = new QName(el.getNamespaceURI(), el.getLocalName());
    TypeSchema ts = new TypeSchemaHelper(true).get(type.getNamespaceURI());
    if (null == ts) {
      throw new ConfigurationException(new Message("JAXB_PROPERTY_EDITOR_EXC", LOG, type));
    }
    try {
      return ts.unmarshal(type, el);
    } catch (JAXBException ex) {
      Message msg = new Message("JAXB_PROPERTY_EDITOR_EXC", LOG, type);
      throw new ConfigurationException(msg, ex);
    }
  }
  return o;
}

origin: org.objectweb.celtix/celtix-rt

  public Object getValue() {
    Object o = super.getValue();
    if (o instanceof Element) {
      Element el = (Element)o;
      QName type = new QName(el.getNamespaceURI(), el.getLocalName());
      TypeSchema ts = new TypeSchemaHelper(true).get(type.getNamespaceURI());
      if (null == ts) {
        throw new ConfigurationException(new Message("JAXB_PROPERTY_EDITOR_EXC", LOG, type));
      }
      try {
        return ts.unmarshal(type, el);
      } catch (JAXBException ex) {
        Message msg = new Message("JAXB_PROPERTY_EDITOR_EXC", LOG, type);
        throw new ConfigurationException(msg, ex);
      }
    }

    return o;
  }       
}
origin: org.objectweb.celtix/celtix-common

  continue;
TypeSchema ts = new TypeSchemaHelper(forceDefaults).get(type.getNamespaceURI());
if (ts == null) {
  throw new ConfigurationException(new Message("NO_TYPESCHEMA_FOR_NAMESPACE_EXC", LOG,
origin: org.objectweb.celtix/celtix-common

TypeSchema ts = new TypeSchemaHelper(forceDefaults).get(namespaceURI);
QName type = null;
if (null != ts) {
org.objectweb.celtix.configuration.implTypeSchemaHelperget

Popular methods of TypeSchemaHelper

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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