Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/ctx
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31765/com/sun/xacml/ctx
Modified Files:
Attribute.java
Log Message:
updated to use new factory interfaces
Index: Attribute.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/ctx/Attribute.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Attribute.java 27 Oct 2003 04:43:02 -0000 1.6
--- Attribute.java 13 Feb 2004 17:55:32 -0000 1.7
***************
*** 3,7 ****
* @(#)Attribute.java
*
! * Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
--- 3,7 ----
* @(#)Attribute.java
*
! * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
***************
*** 135,138 ****
--- 135,140 ----
AttributeValue value = null;
+ AttributeFactory attrFactory = AttributeFactory.getInstance();
+
// First check that we're really parsing an Attribute
if (! root.getNodeName().equals("Attribute")) {
***************
*** 184,188 ****
// now get the value
try {
! value = AttributeFactory.createAttribute(node, type);
} catch (UnknownIdentifierException uie) {
throw new ParsingException("Unknown AttributeId", uie);
--- 186,190 ----
// now get the value
try {
! value = attrFactory.createValue(node, type);
} catch (UnknownIdentifierException uie) {
throw new ParsingException("Unknown AttributeId", uie);
|