Examples of Property


Examples of org.eclipse.orion.server.core.resources.Property

    this.spaces = spaces;
  }

  @Override
  public JSONObject toJSON() throws JSONException {
    DEFAULT_RESOURCE_SHAPE.addProperty(new Property(CFProtocolConstants.KEY_SPACES));
    return jsonSerializer.serialize(this, DEFAULT_RESOURCE_SHAPE);
  }
View Full Code Here

Examples of org.eclipse.persistence.internal.jaxb.json.schema.model.Property

       
        Map<String, Property> properties = null;       
        //Check for root level list or array
        if(rootClass.isArray() || isCollection(rootClass)) {
            schema.setType(JsonType.ARRAY);
            schema.setItems(new Property());
            Class itemType = Object.class;
           
            if(rootClass.isArray()) {
                itemType = rootClass.getComponentType();
            } else {
                Type pType = rootClass.getGenericSuperclass();
                if(pType instanceof ParameterizedType) {
                    itemType = (Class)((ParameterizedType)pType).getActualTypeArguments()[0];
                }
            }
            rootType = getJsonTypeForJavaType(itemType);
            schema.getItems().setType(rootType);
            if(rootType != JsonType.OBJECT) {
                return schema;
            }
            rootClass = itemType;
            properties = schema.getItems().getProperties();
           
        } else {
            schema.setType(JsonType.OBJECT);
            properties = schema.getProperties();
        }
        this.project = this.xmlContext.getSession(rootClass).getProject();
       
        XMLDescriptor descriptor = (XMLDescriptor)project.getDescriptor(rootClass);
        Property rootProperty = null;
        if(contextProperties != null && Boolean.TRUE.equals(this.contextProperties.get(JAXBContextProperties.JSON_INCLUDE_ROOT))) {
            XMLField field = descriptor.getDefaultRootElementField();
            if(field != null) {
                rootProperty = new Property();
                rootProperty.setType(JsonType.OBJECT);
                rootProperty.setName(field.getXPathFragment().getLocalName());
                properties.put(rootProperty.getName(), rootProperty);
                properties = rootProperty.getProperties();
            }
        }
        JsonType type = populateProperties(properties, descriptor);
        if(type != null) {
            if(rootProperty != null) {
                rootProperty.setType(type);
            } else {
                schema.setType(type);
            }
        }
        return schema;
View Full Code Here

Examples of org.eclipse.sapphire.Property

                            final Map<String,String> params )
        {
            final ModelPath path = new ModelPath( substituteParams( definition.getProperty().content(), params ) );
           
            Element element = getLocalModelElement();
            Property p = null;
           
            for( int i = 0, n = path.length(); i < n; i++ )
            {
                if( p != null )
                {
                    throw new RuntimeException( path.toString() );
                }
               
                final ModelPath.Segment segment = path.segment( i );
               
                if( segment instanceof ModelPath.ModelRootSegment )
                {
                    element = element.root();
                }
                else if( segment instanceof ModelPath.ParentElementSegment )
                {
                    element = element.parent().element();
                }
                else if( segment instanceof ModelPath.PropertySegment )
                {
                    final Property property = element.property( ( (ModelPath.PropertySegment) segment ).getPropertyName() );
                   
                    if( property != null && property.definition() instanceof ImpliedElementProperty )
                    {
                        element = ( (ElementHandle<?>) property ).content();
                    }
                    else if( property instanceof ElementList || property instanceof ElementHandle )
                    {
View Full Code Here

Examples of org.eclipse.uml2.Property

                    MetafacadeConstants.NAMESPACE_SCOPE_OPERATOR,
                    true);
            if (modelElement instanceof Type)
            {
                Type element = (Type)modelElement;
                final Property property = umlClass.createOwnedAttribute(
                        name,
                        element,
                        1,
                        1);
                VisibilityKind kind = VisibilityKind.PUBLIC_LITERAL;
                if (visibility.equalsIgnoreCase("package"))
                {
                    kind = VisibilityKind.PACKAGE_LITERAL;
                }
                if (visibility.equalsIgnoreCase("private"))
                {
                    kind = VisibilityKind.PRIVATE_LITERAL;
                }
                if (visibility.equalsIgnoreCase("protected"))
                {
                    kind = VisibilityKind.PROTECTED_LITERAL;
                }
                property.setVisibility(kind);
                Stereotype stereotype =
                    UmlUtilities.findApplicableStereotype(
                        property,
                        UMLProfile.STEREOTYPE_IDENTIFIER);
                if (stereotype == null)
                {
                    throw new MetafacadeException("Could not apply '" + UMLProfile.STEREOTYPE_IDENTIFIER + "' to " +
                        property + ", the stereotype could not be found");
                }
                property.apply(stereotype);
            }
        }
    }
View Full Code Here

Examples of org.eclipse.uml2.uml.Property

   * <!-- begin-user-doc --> <!-- end-user-doc -->
   *
   * @generated
   */
  public void setBase_Property(Property newBase_Property) {
    Property oldBase_Property = base_Property;
    base_Property = newBase_Property;
    if(eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ConstraintsPackage.CONSTRAINT_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.property.Property

  private void removeHtmlProperty_whenAddChild() {
    addBroadcastListener(new JavaEventListener() {
      @Override
      public void addAfter(JavaInfo parent, JavaInfo child) throws Exception {
        if (parent == PanelInfo.this) {
          Property property = getPropertyByTitle("html");
          if (property.isModified()) {
            property.setValue(Property.UNKNOWN_VALUE);
          }
        }
      }
    });
  }
View Full Code Here

Examples of org.eigenbase.util.property.Property

    /**
     * Returns the value of a property, or null if it is not set.
     */
    private static String getPropertyValue(String propertyName) {
        final Property property = PropertyInfo.lookupProperty(
            MondrianProperties.instance(),
            propertyName);
        return property.isSet()
            ? property.getString()
            : null;
    }
View Full Code Here

Examples of org.eweb4j.orm.config.bean.Property

              idAnn = getter.getAnnotation(Id.class);
              if (idAnn == null)
                continue;
            }
           
            Property p = new Property();
            p.setAutoIncrement("1");
            p.setPk("1");
           
            Pk pkAnn = f.getAnnotation(Pk.class);
           
            if (pkAnn != null) {
              p.setPk("1");
            }
           
            String column = colAnn.name();
            column = "".equals(column.trim()) ? name : column;
            p.setName(name);
            p.setColumn(column);
            p.setType(f.getType().getName());
            pList.add(p);
          }
          ormBean.setProperty(pList);
          ormList.add(ormBean);
        }
View Full Code Here

Examples of org.eweb4j.orm.dao.config.bean.Property

*/
public class DAOConfigBeanCreator {
  public static DBInfoConfigBean getDAOBean(){
    DBInfoConfigBean dcb = new DBInfoConfigBean();
    List<Property> properties = new ArrayList<Property>();
    Property p = new Property();
    p.setKey("");
    p.setValue("");
    properties.add(p);
    dcb.setProperty(properties);
    return dcb;
  }
View Full Code Here

Examples of org.exolab.castor.mapping.xml.Property

            //-- special properties?
            Property[] props = xml.getProperty();
            if ((props != null) && (props.length > 0)) {
                for (int pIdx = 0; pIdx < props.length; pIdx++) {
                    Property prop = props[pIdx];
                    xmlDesc.setXMLProperty(prop.getName(), prop.getValue());
                }
            }
        }

        //-- Get collection type
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.