Tabnine Logo
Property.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.fabric3.api.model.type.component.Property
constructor

Best Java code snippets using org.fabric3.api.model.type.component.Property.<init> (Showing top 6 results out of 315)

origin: com.carecon.fabric3/fabric3-introspection-java

private Property createDefinition(String name, boolean required, Type type, TypeMapping typeMapping) {
  Property property = new Property(name);
  property.setRequired(required);
  MultiplicityType multiplicityType = helper.introspectMultiplicity(type, typeMapping);
  property.setMany(MultiplicityType.COLLECTION == multiplicityType || MultiplicityType.DICTIONARY == multiplicityType);
  return property;
}
origin: org.fabric3/fabric3-model-api

/**
 * Adds a property to the composite parsed from the XML source.
 *
 * @param name   the property name
 * @param source the XML source
 * @return the builder
 * @throws ModelBuilderException if an error reading the source occurs
 */
public CompositeBuilder property(String name, URL source) {
  checkState();
  try {
    Document document = DOCUMENT_FACTORY.newDocumentBuilder().parse(source.openStream());
    // all properties have a root <values> element, append the existing root to it. The existing root will be taken as a property <value>.
    Element oldRoot = document.getDocumentElement();
    Element newRoot = document.createElement("values");
    document.removeChild(oldRoot);
    document.appendChild(newRoot);
    newRoot.appendChild(oldRoot);
    Property property = new Property(name);
    property.setDefaultValue(document);
    composite.add(property);
  } catch (IOException | ParserConfigurationException | SAXException e) {
    throw new ModelBuilderException(e);
  }
  return this;
}
origin: com.carecon.fabric3/fabric3-system

private void addProperty(InjectingComponentType componentType, TypeMapping typeMapping, String name, Type type, InjectionSite site) {
  Property property = new Property(name);
  MultiplicityType multiplicityType = helper.introspectMultiplicity(type, typeMapping);
  property.setMany(MultiplicityType.COLLECTION == multiplicityType || MultiplicityType.DICTIONARY == multiplicityType);
  componentType.add(property, site);
}
origin: com.carecon.fabric3/fabric3-java

private void addProperty(InjectingComponentType componentType,
             String name,
             Type type,
             Class<?> declaringClass,
             InjectionSite site,
             IntrospectionContext context) {
  TypeMapping typeMapping = context.getTypeMapping(declaringClass);
  Property property = new Property(name);
  MultiplicityType multiplicityType = helper.introspectMultiplicity(type, typeMapping);
  property.setMany(MultiplicityType.COLLECTION == multiplicityType || MultiplicityType.DICTIONARY == multiplicityType);
  componentType.add(property, site);
}
origin: com.carecon.fabric3/fabric3-spring

Property property = new Property(name);
property.setRequired(true);
origin: org.fabric3/fabric3-spring

Property property = new Property(name);
property.setRequired(true);
org.fabric3.api.model.type.componentProperty<init>

Popular methods of Property

  • getName
    Returns the name of the property.
  • 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

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JCheckBox (javax.swing)
  • JOptionPane (javax.swing)
  • 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