Examples of PropertyType


Examples of ch.semafor.gendas.model.PropertyType

        v = (Long) value;
      }
      element.setVersion(v); // property must be Int of Long!!
    } else {
      try {
        final PropertyType propType = propertyTypeDao.findByName(propName);
        Property prop = element.getProperty(propType);
        if (prop == null) {
          prop = new Property(element, propType);
        }
        if (value instanceof java.util.List) {
View Full Code Here

Examples of com.asakusafw.testdriver.core.PropertyType

            throw new IllegalArgumentException("name must not be null"); //$NON-NLS-1$
        }
        if (type == null) {
            throw new IllegalArgumentException("type must not be null"); //$NON-NLS-1$
        }
        PropertyType kind = TYPES.get(type);
        if (kind == null) {
            return null;
        }
        if (kind.getRepresentation() == Calendar.class) {
            List<String> words = name.getWords();
            if (words.contains(PropertyType.DATE.name().toLowerCase())) {
                return PropertyType.DATE;
            } else if (words.contains(PropertyType.TIME.name().toLowerCase())) {
                return PropertyType.TIME;
View Full Code Here

Examples of com.asakusafw.testdriver.core.PropertyType

            }
            Object value = object.getValue(property);
            if (value == null) {
                return null;
            }
            PropertyType type = definition.getType(property);
            switch (type) {
            case DATE:
                return dateFormat.format(((Calendar) value).getTime());
            case TIME:
                return timeFormat.format(((Calendar) value).getTime());
View Full Code Here

Examples of com.asakusafw.testdriver.core.PropertyType

        if (name == null) {
            throw new IllegalArgumentException("name must not be null"); //$NON-NLS-1$
        }
        String[] words = name.split("_|-|\\s+");
        PropertyName propertyName = PropertyName.newInstance(words);
        PropertyType type = definition.getType(propertyName);
        if (type == null) {
            throw new IllegalArgumentException(MessageFormat.format(
                    "\"{0}\"にプロパティ\"{1}\"は定義されていません",
                    definition.getModelClass().getName(),
                    propertyName));
View Full Code Here

Examples of com.asakusafw.testdriver.core.PropertyType

    private Map<String, PropertyName> extractAllMappings() {
        assert definition != null;
        Map<String, PropertyName> results = new TreeMap<String, PropertyName>(String.CASE_INSENSITIVE_ORDER);
        for (PropertyName name : definition.getProperties()) {
            PropertyType type = definition.getType(name);
            assert type != null;
            if (acceptsType(name, type) == false) {
                continue;
            }
            String columnName = getOriginalName(name);
View Full Code Here

Examples of com.cloudloop.generated.PropertyType

  s3Store.setEncrypted( Boolean.TRUE );
  s3Store.setName( "s3" );
  List<PropertyType> s3Props = s3Store.getProperty( );
  for ( Object propName : amazonProperties.keySet( ) )
  {
      PropertyType prop = new PropertyType( );
      prop.setName( (String) propName );
      prop.setValue( amazonProperties.getProperty( (String) propName ) );
      s3Props.add( prop );
  }
  storeList.add( s3Store );
 
  Store jS3Store = new Store( );
  jS3Store.setAdapter( "jS3" );
  jS3Store.setEncrypted( Boolean.TRUE );
  jS3Store.setName( "s3" );
  List<PropertyType> jS3Props = jS3Store.getProperty( );
  for ( Object propName : amazonProperties.keySet( ) )
  {
      PropertyType prop = new PropertyType( );
      prop.setName( (String) propName );
      prop.setValue( amazonProperties.getProperty( (String) propName ) );
      jS3Props.add( prop );
  }
  storeList.add( jS3Store );
 
  Store nirvanixStore = new Store( );
  nirvanixStore.setAdapter( "nirvanix" );
  nirvanixStore.setEncrypted( Boolean.TRUE );
  nirvanixStore.setName( "nirvanix" );
  List<PropertyType> nirvanixProps = nirvanixStore.getProperty( );
  for ( Object propName : nirvanixProperties.keySet( ) )
  {
      PropertyType prop = new PropertyType( );
      prop.setName( (String) propName );
      prop.setValue( nirvanixProperties.getProperty( (String) propName ) );
      nirvanixProps.add( prop );
  }
  storeList.add( nirvanixStore );
 
  Store rackspaceStore = new Store( );
  rackspaceStore.setAdapter( "rackspace" );
  rackspaceStore.setEncrypted( Boolean.TRUE );
  rackspaceStore.setName( "rackspace" );
  List<PropertyType> rackspaceProps = rackspaceStore.getProperty( );
  for ( Object propName : rackspaceProperties.keySet( ) )
  {
      PropertyType prop = new PropertyType( );
      prop.setName( (String) propName );
      prop
        .setValue( rackspaceProperties
        .getProperty( (String) propName ) );
      rackspaceProps.add( prop );
  }
  storeList.add( rackspaceStore );
 
  Store localStore = new Store( );
  localStore.setAdapter( "local" );
  localStore.setEncrypted( Boolean.FALSE );
  localStore.setName( "local" );
  List<PropertyType> localProps = localStore.getProperty( );
  PropertyType localRoot = new PropertyType( );
  for ( Object propName : localProperties.keySet( ) )
  {
      PropertyType prop = new PropertyType( );
      prop.setName( (String) propName );
      prop.setValue( localProperties.getProperty( (String) propName ) );
      localProps.add( prop );
  }
  localProps.add( localRoot );
  storeList.add( localStore );
 
View Full Code Here

Examples of com.linkedin.helix.PropertyType

  }

  @Override
  public <T extends HelixProperty> boolean createProperty(PropertyKey key, T value)
  {
    PropertyType type = key.getType();
    String path = key.getPath();
    int options = constructOptions(type);
    return _baseDataAccessor.create(path, value.getRecord(), options);
  }
View Full Code Here

Examples of com.mysema.query.annotations.PropertyType

    private Property toProperty(EntityType entityType, String name, TypeMirror type,
            Annotations annotations) {
        // type
        Type propertyType = typeFactory.getType(type, true);
        if (annotations.isAnnotationPresent(QueryType.class)) {
            PropertyType propertyTypeAnn = annotations.getAnnotation(QueryType.class).value();
            if (propertyTypeAnn != PropertyType.NONE) {
                TypeCategory typeCategory = TypeCategory.valueOf(annotations.getAnnotation(QueryType.class).value().name());
                if (typeCategory == null) {
                    return null;
                }
View Full Code Here

Examples of com.tll.model.schema.PropertyType

        }
        throw new NullNodeInPropPathException(pp.toString(), pname);
      }

      // get the bound prop val type for this prop path element
      final PropertyType pvType = prop.getType();

      // non-relational prop val
      if(!pvType.isRelational()) {
        if(!atEnd) {
          throw new PropPathNodeMismatchException(pp.toString(), pname, pvType.toString(), "Relational");
        }
        return prop;
      }

      // related one prop val
      else if(pvType == PropertyType.RELATED_ONE) {
        if(indexed) {
          throw new PropPathNodeMismatchException(pp.toString(), pname, pvType.toString(), PropertyType.RELATED_MANY
              .toString());
        }
        final IModelRefProperty mrp = (IModelRefProperty) prop;
        if(atEnd) {
          return mrp;
View Full Code Here

Examples of edu.stanford.bmir.protege.web.client.rpc.data.PropertyType

            case Cls:
                return getEntity(entityData.getName(), EntityType.CLASS);
            case Property:
                if(entityData instanceof PropertyEntityData) {
                    PropertyEntityData ped = (PropertyEntityData) entityData;
                    PropertyType propertyType = ped.getPropertyType();
                    if(propertyType == PropertyType.OBJECT) {
                        return getEntity(entityData.getName(), EntityType.OBJECT_PROPERTY);
                    }
                    else if(propertyType == PropertyType.DATATYPE) {
                        return getEntity(entityData.getName(), EntityType.DATA_PROPERTY);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.