Codota Logo
ConfigurationItemMetadata.getName
Code IndexAdd Codota to your IDE (free)

How to use
getName
method
in
org.objectweb.celtix.configuration.ConfigurationItemMetadata

Best Java code snippets using org.objectweb.celtix.configuration.ConfigurationItemMetadata.getName (Showing top 4 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: org.objectweb.celtix/celtix-common

protected void addItem(ConfigurationItemMetadata item) {
  definitions.put(item.getName(), item);
}
origin: org.objectweb.celtix/celtix-tools

private void writeDataMembers(PrintWriter pw, ConfigurationMetadata model) {
  for (ConfigurationItemMetadata definition : model.getDefinitions()) {
    QName type = definition.getType();            
    String className = getClassName(type, false);
    String memberName = JAXBUtils.nameToIdentifier(definition.getName(), 
                            JAXBUtils.IdentifierType.VARIABLE);
    pw.print("    private ");
    pw.print(className);
    pw.print(" ");
    pw.print(memberName);
    pw.println(";");           
  }
  pw.println();
  pw.print("    private Collection<String> _initialized = ");
  pw.println("new ArrayList<String>();");
  
  pw.println();
}

origin: org.objectweb.celtix/celtix-tools

QName type = definition.getType();            
String className = getClassName(type, false);
String memberName = JAXBUtils.nameToIdentifier(definition.getName(), 
                        JAXBUtils.IdentifierType.VARIABLE);
pw.print(className);
pw.print(" ");
pw.print(JAXBUtils.nameToIdentifier(definition.getName(), JAXBUtils.IdentifierType.GETTER));
pw.println("() {");
pw.print("        return ");
pw.print(JAXBUtils.nameToIdentifier(definition.getName(), JAXBUtils.IdentifierType.SETTER));
pw.print("(");
pw.print(className);
pw.println(" = obj;");
pw.print("        if (!_initialized.contains(\"");
pw.print(definition.getName());
pw.println("\")) {");
pw.print("            _initialized.add(\"");
pw.print(definition.getName());
pw.println("\");");
pw.println("        }");
origin: org.objectweb.celtix/celtix-common

public Object unmarshalDefaultValue(ConfigurationItemMetadata item, Element data, boolean doValidate) {
  try {
    return unmarshal(item.getType(), data, doValidate);
  } catch (JAXBException ex) {
    if (forceDefaults) {
      Message msg = new Message("DEFAULT_VALUE_UNMARSHAL_ERROR_EXC", LOG, item.getName());
      throw new ConfigurationException(msg, ex);
    }
    return null;
  }
}

org.objectweb.celtix.configurationConfigurationItemMetadatagetName

Javadoc

Returns the name of this configuration metadata item which must be unique within its ConfigurationMetadata container.

Popular methods of ConfigurationItemMetadata

  • getType
    Returns the type of this configuration metadata item as a QName. The namespaceURI of this QName iden
  • getDefaultValue
    Returns the default value of this configuration metadata item. The runtime class of this value depen

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
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