Package com.sun.xacml.attr

Examples of com.sun.xacml.attr.AttributeFactory.createValue()


    try
    {
      final String textValue = currentValue.toString();
      if(textValue == null || textValue.length() == 0)
        {return null;}
      final AttributeValue value = factory.createValue(attribute.getType(), textValue);
      for(final AttributeHandler handler : attributeHandlers)
        handler.checkUserValue(value, attribute);
      return value;
    }
    catch(final UnknownIdentifierException e)
View Full Code Here


        // get the attribute value, the only child of this element
        AttributeFactory attrFactory = AttributeFactory.getInstance();
        AttributeValue value = null;

        try {
            value = attrFactory.createValue(root.getFirstChild());
        } catch (UnknownIdentifierException uie) {
            throw new ParsingException("Unknown AttributeId", uie);
        }

        return new CombinerParameter(name, value);
View Full Code Here

                eval = AttributeDesignator.getInstance(node, matchType, metaData);
            } else if (name.equals("AttributeSelector")) {
                eval = AttributeSelector.getInstance(node, metaData);
            } else if (name.equals("AttributeValue")) {
                try {
                    attrValue = attrFactory.createValue(node);
                } catch (UnknownIdentifierException uie) {
                    throw new ParsingException("Unknown Attribute Type", uie);
                }
            }
        }
View Full Code Here

                // if (value != null)
                // throw new ParsingException("Too many values in Attribute");

                // now get the value
                try {
                    AttributeValue value = attrFactory.createValue(node, type);
                    valueList.add(value);
                } catch (UnknownIdentifierException uie) {
                    throw new ParsingException("Unknown AttributeId", uie);
                }
            }
View Full Code Here

            Node node = nodes.item(i);
            if (node.getNodeName().equals("AttributeAssignment")) {
                try {
                    URI attrId = new URI(node.getAttributes().getNamedItem("AttributeId")
                            .getNodeValue());
                    AttributeValue attrValue = attrFactory.createValue(node);
                    assignments.add(new Attribute(attrId, null, null, attrValue));
                } catch (URISyntaxException use) {
                    throw new ParsingException("Error parsing URI", use);
                } catch (UnknownIdentifierException uie) {
                    throw new ParsingException("Unknown AttributeId", uie);
View Full Code Here

                } else {
                    // the data is in a child node
                    text = node.getFirstChild().getNodeValue();
                }

                list.add(attrFactory.createValue(type, text));
            }

            return new EvaluationResult(new BagAttribute(type, list));
        } catch (ParsingException pe) {
            return createProcessingError(pe.getMessage());
View Full Code Here

                if ((nodeType == Node.CDATA_SECTION_NODE) || (nodeType == Node.COMMENT_NODE)
                        || (nodeType == Node.TEXT_NODE) || (nodeType == Node.ATTRIBUTE_NODE)) {
                    // there is no child to this node
                    text = node.getNodeValue();
                    attrValue = attrFactory.createValue(type, text);
                } else if (nodeType == Node.DOCUMENT_NODE || nodeType == Node.ELEMENT_NODE) {
                    attrValue = attrFactory.createValue(node, type);
                } else {
                    // the data is in a child node
                    text = node.getFirstChild().getNodeValue();
View Full Code Here

                        || (nodeType == Node.TEXT_NODE) || (nodeType == Node.ATTRIBUTE_NODE)) {
                    // there is no child to this node
                    text = node.getNodeValue();
                    attrValue = attrFactory.createValue(type, text);
                } else if (nodeType == Node.DOCUMENT_NODE || nodeType == Node.ELEMENT_NODE) {
                    attrValue = attrFactory.createValue(node, type);
                } else {
                    // the data is in a child node
                    text = node.getFirstChild().getNodeValue();
                    attrValue = attrFactory.createValue(type, text);
                }
View Full Code Here

                } else if (nodeType == Node.DOCUMENT_NODE || nodeType == Node.ELEMENT_NODE) {
                    attrValue = attrFactory.createValue(node, type);
                } else {
                    // the data is in a child node
                    text = node.getFirstChild().getNodeValue();
                    attrValue = attrFactory.createValue(type, text);
                }

                list.add(attrValue);
            }
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.