Tabnine Logo
Property.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.fabric3.api.model.type.component.Property

Best Java code snippets using org.fabric3.api.model.type.component.Property.getName (Showing top 7 results out of 315)

origin: com.carecon.fabric3/fabric3-web

private void generatePropertyInjectionMapping(Property property, Map<String, Map<String, InjectionSite>> mappings) {
  Map<String, InjectionSite> mapping = mappings.get(property.getName());
  if (mapping == null) {
    mapping = new HashMap<>();
    mappings.put(property.getName(), mapping);
  }
  // inject the property into the session context
  // we don't need to do the type mappings from schema to Java so set Object as the type
  WebContextInjectionSite site = new WebContextInjectionSite(Object.class, SERVLET_CONTEXT);
  mapping.put(SESSION_CONTEXT_SITE, site);
}
origin: com.carecon.fabric3/fabric3-fabric

String name = property.getName();
boolean required = property.isRequired();
PropertyValue propertyValue = propertyValues.get(name);
      value = loadValueFromFile(property.getName(), propertyValue.getFile(), logicalComponent, context);
    } else if (propertyValue.getSource() != null) {
origin: org.fabric3/fabric3-model-api

/**
 * Add a property defined by the implementation.
 *
 * @param property the property to add
 */
public void add(Property property) {
  property.setParent(this);
  properties.put(property.getName(), property);
}
origin: org.fabric3/fabric3-fabric

String name = property.getName();
boolean required = property.isRequired();
PropertyValue propertyValue = propertyValues.get(name);
      value = loadValueFromFile(property.getName(), propertyValue.getFile(), logicalComponent, context);
    } else if (propertyValue.getSource() != null) {
origin: org.fabric3/fabric3-model-api

/**
 * Add a property and its associated with an injection site.
 *
 * @param property      the property to add
 * @param injectionSite the injection site for the property
 */
public void add(Property property, InjectionSite injectionSite) {
  super.add(property);
  Injectable injectable = new Injectable(InjectableType.PROPERTY, property.getName());
  addInjectionSite(injectionSite, injectable);
  injectionSiteMapping.put(property, injectionSite);
}
origin: com.carecon.fabric3/fabric3-fabric

private void includeProperty(Property property, LogicalCompositeComponent domain, InstantiationContext context) {
  String name = property.getName();
  if (domain.getAllProperties().containsKey(name)) {
    DuplicateProperty error = new DuplicateProperty(name, domain);
    context.addError(error);
  } else {
    Document value = property.getDefaultValue();
    boolean many = property.isMany();
    QName type = property.getType();
    LogicalProperty logicalProperty = LogicalProperty.Builder.newBuilder(name, domain).xmlValue(value).many(many).type(type).build();
    domain.setProperties(logicalProperty);
  }
}
origin: org.fabric3/fabric3-fabric

private void includeProperty(Property property, LogicalCompositeComponent domain, InstantiationContext context) {
  String name = property.getName();
  if (domain.getAllProperties().containsKey(name)) {
    DuplicateProperty error = new DuplicateProperty(name, domain);
    context.addError(error);
  } else {
    Document value = property.getDefaultValue();
    boolean many = property.isMany();
    QName type = property.getType();
    LogicalProperty logicalProperty = LogicalProperty.Builder.newBuilder(name, domain).xmlValue(value).many(many).type(type).build();
    domain.setProperties(logicalProperty);
  }
}
org.fabric3.api.model.type.componentPropertygetName

Javadoc

Returns the name of the property.

Popular methods of Property

  • <init>
  • getType
    Returns the property XSD type or null if it is not an XSD type.
  • setMany
    Sets whether the property is many-valued or single-valued.
  • setRequired
    Sets whether the component definition must supply a value for this property.
  • getDefaultValue
    Returns the default property value as a DOM.
  • getNamespaces
  • getSource
    Returns the property source
  • isMany
    Returns whether the property is many-valued or single-valued.
  • isRequired
    Returns whether the component definition must supply a value for this property.
  • setType
    Sets the XSD type
  • addNamespace
    Adds a namespace used to resolve a property source.
  • setDefaultValue
    Sets the default property values.
  • addNamespace,
  • setDefaultValue,
  • setParent,
  • setSource

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Best IntelliJ plugins
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