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

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

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

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

private void processPropertyValues(LogicalComponent<?> component, PhysicalSpringComponent springComponent) {
  for (LogicalProperty property : component.getAllProperties().values()) {
    String name = property.getName();
    boolean many = property.isMany();
    if (property.getXmlValue() != null) {
      Document document = property.getXmlValue();
      ComponentType componentType = component.getDefinition().getImplementation().getComponentType();
      QName type = componentType.getProperties().get(property.getName()).getType();
      PhysicalProperty physicalProperty =  PhysicalProperty.Builder.newBuilder(name).xmlValue(document).many(many).type(type).build();
      springComponent.setProperty(physicalProperty);
    } else if (property.getInstanceValue() != null) {
      Object value = property.getInstanceValue();
      PhysicalProperty physicalProperty =  PhysicalProperty.Builder.newBuilder(name).instanceValue(value).many(many).build();
      springComponent.setProperty(physicalProperty);
    }
  }
}
origin: org.fabric3/fabric3-spring

private void processPropertyValues(LogicalComponent<?> component, PhysicalSpringComponent springComponent) {
  for (LogicalProperty property : component.getAllProperties().values()) {
    String name = property.getName();
    boolean many = property.isMany();
    if (property.getXmlValue() != null) {
      Document document = property.getXmlValue();
      ComponentType componentType = component.getDefinition().getImplementation().getComponentType();
      QName type = componentType.getProperties().get(property.getName()).getType();
      PhysicalProperty physicalProperty =  PhysicalProperty.Builder.newBuilder(name).xmlValue(document).many(many).type(type).build();
      springComponent.setProperty(physicalProperty);
    } else if (property.getInstanceValue() != null) {
      Object value = property.getInstanceValue();
      PhysicalProperty physicalProperty =  PhysicalProperty.Builder.newBuilder(name).instanceValue(value).many(many).build();
      springComponent.setProperty(physicalProperty);
    }
  }
}
origin: com.carecon.fabric3/fabric3-fabric

QName type = property.getType();
LogicalProperty.Builder builder = LogicalProperty.Builder.newBuilder(name, logicalComponent);
LogicalProperty logicalProperty = builder.xmlValue(value).many(many).type(type).required(required).build();
origin: org.fabric3/fabric3-fabric

QName type = property.getType();
LogicalProperty.Builder builder = LogicalProperty.Builder.newBuilder(name, logicalComponent);
LogicalProperty logicalProperty = builder.xmlValue(value).many(many).type(type).required(required).build();
org.fabric3.api.model.type.componentPropertygetType

Javadoc

Returns the property XSD type or null if it is not an XSD type.

Popular methods of Property

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

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Path (java.nio.file)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm 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