Examples of ObjectAttribute


Examples of br.uniriotec.orion.model.forte.resources.ObjectAttribute

    public List<ObjectAttribute> generateObjectAttributes(){
        Set<OntClass> conjClasses = parser.listarClasses();
        List<ObjectAttribute> conjAtributos = new ArrayList<ObjectAttribute>();
        for(OntClass classe : conjClasses){
            Set<DatatypeProperty> conjDatatypes = parser.listarDatatypeProperties(classe);
            ObjectAttribute atributo = null;
            for(DatatypeProperty dataProp : conjDatatypes){
                //TODO Adicionar a lista
                if(atributo == null){
                    atributo = new ObjectAttribute();
                    atributo.setRefConceito(classe.getLocalName());
                }
                atributo.addAtributo(dataProp.getLocalName());
            }
            if(atributo != null){
             conjAtributos.add(atributo);
            }
        }
View Full Code Here

Examples of com.db4o.config.ObjectAttribute

       
      if(config.reflector()==null) {
        config.reflectWith(jdk().createReflector(null));
      }
     
        config.objectClass("java.lang.StringBuffer").compare(new ObjectAttribute() {
            public Object attribute(Object original) {
                if (original instanceof StringBuffer) {
                    return ((StringBuffer) original).toString();
                }
                return original;
View Full Code Here

Examples of com.volantis.mcs.protocols.ObjectAttribute

    // set appropriate attributes depending on XDIME1 or XDIME2
    // implemented in child class
    protected void setSpecificAttributes(Parameters params) throws Exception {

        ObjectAttribute objectAttribute = (ObjectAttribute) mapAttribute;
        // Rewrite source URL from MediaAgent response, passing it through
        // additional page rewriter.
        objectAttribute.setSrc(urlRewriter.rewrite(
            params.getParameterValue(
                MediaAgent.OUTPUT_URL_PARAMETER_NAME)));

        // Clear the srcType attribute, since the actual MIME type will be
        // known at the moment of the transcoding.
        objectAttribute.setSrcType(null);
    }
View Full Code Here

Examples of org.jmanage.core.management.ObjectAttribute

        for(int i=0; i<numberOfAttrs; i++){
            Object[] cols = new Object[attributeValues.length + 1];
            cols[0] = ((ObjectAttribute)attrList.get(i)).getName();
            for(int j=0; j<attributeValues.length; j++){
                if(!attributeValues[j].isError()){
                    ObjectAttribute objAttribute =
                            (ObjectAttribute)attributeValues[j].getAttributeList().get(i);
                    cols[j+1] = objAttribute.getDisplayValue();
                }else{
                    // todo: this should come out of display value - rk
                    cols[j+1] = "<unavailable>";
                }
            }
View Full Code Here

Examples of org.jmanage.core.management.ObjectAttribute

                || sourceType.equals(AlertSourceConfig.SOURCE_TYPE_STRING_MONITOR)){
            Expression expr = new Expression(alertForm.getExpression());
            request.setAttribute("sourceMBean", expr.getMBeanName());
            request.setAttribute("attribute", expr.getTargetName());
            MBeanService mbeanService = ServiceFactory.getMBeanService();
            ObjectAttribute objAttr = mbeanService.getObjectAttribute(
                    Utils.getServiceContext(context, expr),
                    expr.getTargetName());
            request.setAttribute("currentAttrValue",
                    objAttr.getDisplayValue());

        }

        request.setAttribute("applications",
                ApplicationConfigManager.getAllApplications());
View Full Code Here

Examples of org.jmanage.core.management.ObjectAttribute

    }

    private void print(AttributeListData[] attrValues){
        assert attrValues.length == 1;
        for(Iterator it=attrValues[0].getAttributeList().iterator(); it.hasNext(); ){
            ObjectAttribute attribute= (ObjectAttribute)it.next();
            Out.print(attribute.getDisplayValue() + "\t");
        }
    }
View Full Code Here

Examples of org.jmanage.core.management.ObjectAttribute

                    AlertSourceConfig.SOURCE_TYPE_STRING_MONITOR) ){
                expression = new Expression(null, alertSrcConfig.getObjectName(),
                        alertSrcConfig.getAttributeName());
                request.setAttribute("attribute", alertSrcConfig.getAttributeName());
                MBeanService mbeanService = ServiceFactory.getMBeanService();
                ObjectAttribute objAttr = mbeanService.getObjectAttribute(
                    Utils.getServiceContext(context, expression),
                    expression.getTargetName());
                request.setAttribute("currentAttrValue",
                        objAttr.getDisplayValue());
                if(sourceType.equals(
                    AlertSourceConfig.SOURCE_TYPE_GAUGE_MONITOR)){
                    form.setMinAttributeValue(alertSrcConfig.getLowThreshold().toString());
                    form.setMaxAttributeValue(alertSrcConfig.getHighThreshold().toString());
                }else if(sourceType.equals(
View Full Code Here

Examples of org.jmanage.core.management.ObjectAttribute

      if(objectNamePattern != null && !anObjectName.getDisplayName().startsWith(objectNamePattern))
    continue;
      output.append("<tr>");
      List attributeValues = connection.getAttributes(anObjectName, attribs);
      for(Iterator it = attributeValues.iterator(); it.hasNext();){
    ObjectAttribute objAttribute = (ObjectAttribute)it.next();
    output.append("<td>").append(objAttribute.getDisplayValue()).append("</td>");             
      }
      output.append("</tr>");
  }
  output.append("</table>");
    }
View Full Code Here

Examples of org.jmanage.core.management.ObjectAttribute

     *
     * @param context
     */
    protected void drawInternal(DashboardContext context, StringBuffer output) {
        ServerConnection connection = context.getWebContext().getServerConnection();
        ObjectAttribute attributeValue =
                (ObjectAttribute)connection.getAttributes(objectName, new String[]{attribute}).get(0);

        String data= displayName != null && !displayName.equals("") ?
                "<b>" +displayName+" : </b>"+ attributeValue.getDisplayValue() :
                attributeValue.getDisplayValue();
        output.append(data);
    }
View Full Code Here

Examples of org.jmanage.core.management.ObjectAttribute

            List attributeList,
            ObjectAttributeInfo attrInfo){

        String attrName = attrInfo.getName();
        for(Iterator it=attributeList.iterator(); it.hasNext(); ){
            ObjectAttribute attribute = (ObjectAttribute)it.next();
            if(attribute != null && attribute.getName().equals(attrName)){
                return attribute;
            }
        }
        return new ObjectAttribute(attrName, ObjectAttribute.STATUS_NOT_FOUND, null);
    }
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.