Package org.jzkit.ServiceDirectory

Examples of org.jzkit.ServiceDirectory.AttributeSetDBO


    for ( Iterator<String> i = attrIterator; i.hasNext(); ) {
      // 1. extract and rewrite use attribute
      String attr_type = i.next();
      AttrValue av = (AttrValue) q.getAttr(attr_type);
        if(log.isDebugEnabled()) log.debug("Rewriting "+attr_type+"="+av);
      AttributeSetDBO as = valid_attributes.get(attr_type);

      if ( as == null )
        throw new ProfileServiceException("No "+attr_type+" attr types allowed for target repository",4);

      AttrValue new_av = rewriteUntilValid(av,as.getAttrs(),service_specific_rewrite_rules,default_namespace);
        if(log.isDebugEnabled()) log.debug("Setting attr "+attr_type+" to "+new_av);
      q.setAttr(attr_type, new_av);

    }
View Full Code Here


    for ( java.util.Iterator i = q.getAttrIterator(); i.hasNext(); ) {
      // 1. extract and rewrite use attribute
      String attr_type = (String) i.next();
      AttrValue av = (AttrValue) q.getAttr(attr_type);
      log.debug("Rewriting "+attr_type+"="+av);
      AttributeSetDBO as = valid_attributes.get(attr_type);

      if ( as == null )
        throw new ProfileServiceException("No "+attr_type+" attr types allowed for target repository",4);

      AttrValue new_av = rewriteUntilValid(av,as.getAttrs(),service_specific_rewrite_rules,default_namespace);
      log.debug("Setting attr "+attr_type+" to "+new_av);
      q.setAttr(attr_type, new_av);

    }
View Full Code Here

    assert(attr_set.contains(unqual_title));
    assert(attr_set.contains(unqual_title_2));

    Map<String,AttributeSetDBO> valid_attributes = new HashMap<String,AttributeSetDBO>();

    AttributeSetDBO valid_access_points = new AttributeSetDBO();
    valid_access_points.getAttrs().add(new AttrValue("title"))// No namespace

    AttributeSetDBO valid_relations = new AttributeSetDBO();
    valid_relations.getAttrs().add(new AttrValue("="))// No namespace

    valid_attributes.put("AccessPoint",valid_access_points);
    valid_attributes.put("Relation",valid_relations);

    Map<String,AttrValue> transforms = new HashMap<String,AttrValue>();
View Full Code Here

TOP

Related Classes of org.jzkit.ServiceDirectory.AttributeSetDBO

Copyright © 2018 www.massapicom. 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.