Codota Logo
org.objectweb.celtix.configuration.impl
Code IndexAdd Codota to your IDE (free)

How to use org.objectweb.celtix.configuration.impl

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.objectweb.celtix/celtix-common

private void deserialize(Document document) {
  deseralizePackageName(document);
  deserializeTypes(document);
  deserializeElements(document);
}
origin: org.objectweb.celtix/celtix-common

public static DefaultConfigurationProviderFactory getInstance() {
  if (null == theInstance) {
    theInstance = new DefaultConfigurationProviderFactory();
  }
  return theInstance;
}

origin: org.objectweb.celtix/celtix-common

public boolean setString(String name, String value) {
  return setObject(name, (String)value);
}
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-common

public AbstractConfigurationImpl(ConfigurationMetadata m, String instanceId, Configuration parent) {
  model = m;
  id = instanceId;
  configurator = new ConfiguratorImpl(this, parent instanceof AbstractConfigurationImpl
                    ? (AbstractConfigurationImpl)parent
                    : null);
  providers = new Vector<ConfigurationProvider>();
  // temporary:
  //providers.add(new InMemoryProvider());
  DefaultConfigurationProviderFactory factory = DefaultConfigurationProviderFactory.getInstance();
  ConfigurationProvider defaultProvider = factory.createDefaultProvider(this);
  if (null != defaultProvider) {
    providers.add(defaultProvider);
  }
}
origin: org.objectweb.celtix/celtix-common

public Object unmarshal(QName type, Element data) throws JAXBException {
  return unmarshal(type, data, true);
}
origin: org.objectweb.celtix/celtix-common

public static QName elementValueToQName(Document document, Element element) {
  return stringToQName(document, element, getElementValue(element));
}

origin: org.objectweb.celtix/celtix-common

public Object unmarshalDefaultValue(ConfigurationItemMetadata item, Element data) {
  return unmarshalDefaultValue(item, data, false);
}
origin: org.objectweb.celtix/celtix-common

private Validator getMetadataValidator() {
  if (null == metadataValidator) {
    Schema schema = getMetadataSchema();
    // assert null != schema;
    metadataValidator = schema.newValidator();
    if (null == validatorErrorHandler) {
      validatorErrorHandler = new ValidatorErrorHandler();
    }
    metadataValidator.setErrorHandler(validatorErrorHandler);
    // assert null != metadataValidator;
  }
  return metadataValidator;
}
origin: org.objectweb.celtix/celtix-common

public Validator getValidator() {
  if (null == validator) {
    Schema s = getSchema();
    validator = s.newValidator();
    validator.setErrorHandler(new TypeSchemaErrorHandler());
  }
  return validator;
}
origin: org.objectweb.celtix/celtix-common

public Configuration buildConfiguration(String namespaceUri, String id) {
  return buildConfiguration(namespaceUri, id, null);
}
origin: org.objectweb.celtix/celtix-common

public ConfigurationMetadataBuilder(boolean fd) {
  model = new ConfigurationMetadataImpl();
  forceDefaults = fd;
}
origin: org.objectweb.celtix/celtix-common

public ConfigurationMetadata build(InputSource is) throws IOException {
  parseXML(is);
  return model;
}
origin: org.objectweb.celtix/celtix-common

public <T> T getObject(Class<T> cls, String name) {
  Object obj = getObject(name);
  return cls.cast(obj);
}
origin: org.objectweb.celtix/celtix-common

public static QName elementAttributeToQName(Document document, Element element, String attrName) {
  return stringToQName(document, element, element.getAttribute(attrName));
}

origin: org.objectweb.celtix/celtix-common

public TypeSchema get(String namespaceURI, String base, String location) {
  TypeSchema ts = map.get(namespaceURI);
  if (null == ts) {
    ts = new TypeSchema(namespaceURI, base, location, forceDefaults);
    map.put(namespaceURI, ts);
  }
  return ts;
}

origin: org.objectweb.celtix/celtix-common

public boolean setShort(String name, short value) {
  return setObject(name, new Short(value));
}
origin: org.objectweb.celtix/celtix-common

public boolean setInt(String name, int value) {
  return setObject(name, new Integer(value));
}
origin: org.objectweb.celtix/celtix-common

public boolean setBoolean(String name, boolean value) {
  return setObject(name, Boolean.valueOf(value));
}
origin: org.objectweb.celtix/celtix-common

public boolean setLong(String name, long value) {
  return setObject(name, new Long(value));
}
org.objectweb.celtix.configuration.impl

Most used classes

  • TypeSchema
  • TypeSchemaHelper
  • ConfigurationMetadataBuilder
  • AbstractConfigurationImpl
  • ConfigurationBuilderImpl
  • ConfigurationMetadataBuilder$ValidatorErrorHandler,
  • ConfigurationMetadataImpl,
  • ConfigurationMetadataUtils,
  • ConfiguratorImpl,
  • DefaultConfigurationProviderFactory,
  • TypeSchema$SchemaInput,
  • TypeSchema$TypeSchemaErrorHandler
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