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

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

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

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);
  }
}
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: com.carecon.fabric3/fabric3-fabric

  boolean many = property.isMany();
  LogicalProperty.Builder builder = LogicalProperty.Builder.newBuilder(name, logicalComponent);
  LogicalProperty logicalProperty = builder.key(propertyKey).many(many).required(required).build();
} else {
  boolean many = property.isMany();
  QName type = property.getType();
  LogicalProperty.Builder builder = LogicalProperty.Builder.newBuilder(name, logicalComponent);
origin: org.fabric3/fabric3-fabric

  boolean many = property.isMany();
  LogicalProperty.Builder builder = LogicalProperty.Builder.newBuilder(name, logicalComponent);
  LogicalProperty logicalProperty = builder.key(propertyKey).many(many).required(required).build();
} else {
  boolean many = property.isMany();
  QName type = property.getType();
  LogicalProperty.Builder builder = LogicalProperty.Builder.newBuilder(name, logicalComponent);
org.fabric3.api.model.type.componentPropertyisMany

Javadoc

Returns whether the property is many-valued or single-valued.

Popular methods of Property

  • <init>
  • 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
  • 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

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top Vim 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