From: <se...@us...> - 2003-07-29 22:01:49
|
Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr In directory sc8-pr-cvs1:/tmp/cvs-serv22177/com/sun/xacml/attr Modified Files: AttributeDesignator.java AttributeSelector.java Log Message: Added accessor methods for Target-related and Function-related classes Index: AttributeDesignator.java =================================================================== RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr/AttributeDesignator.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** AttributeDesignator.java 13 Feb 2003 22:19:10 -0000 1.1.1.1 --- AttributeDesignator.java 29 Jul 2003 22:01:47 -0000 1.2 *************** *** 246,249 **** --- 246,259 ---- /** + * Returns the type of this designator as specified by the *_TARGET + * fields. + * + * @return the designator type + */ + public int getDesignatorType() { + return target; + } + + /** * Returns the type of attribute that is resolved by this designator. * While an AD will always return a bag, this method will always return *************** *** 254,257 **** --- 264,307 ---- public URI getType() { return type; + } + + /** + * Returns the AttributeId of the values resolved by this designator. + * + * @return identifier for the values to resolve + */ + public URI getId() { + return id; + } + + /** + * Returns the subject category for this designator. If this is not a + * SubjectAttributeDesignator then this will always return null. + * + * @return the subject category or null if this isn't a + * SubjectAttributeDesignator + */ + public URI getCategory() { + return subjectCategory; + } + + /** + * Returns the issuer of the values resolved by this designator if + * specified. + * + * @return the attribute issuer or null if unspecified + */ + public URI getIssuer() { + return issuer; + } + + /** + * Returns whether or not a value is required to be resolved by this + * designator. + * + * @return true if a value is required, false otherwise + */ + public boolean mustBePresent() { + return mustBePresent; } Index: AttributeSelector.java =================================================================== RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr/AttributeSelector.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** AttributeSelector.java 13 Feb 2003 22:19:10 -0000 1.1.1.1 --- AttributeSelector.java 29 Jul 2003 22:01:47 -0000 1.2 *************** *** 153,156 **** --- 153,175 ---- /** + * Returns the XPath query used to resolve attribute values. + * + * @return the XPath query + */ + public String getContextPath() { + return contextPath; + } + + /** + * Returns whether or not a value is required to be resolved by this + * selector. + * + * @return true if a value is required, false otherwise + */ + public boolean mustBePresent() { + return mustBePresent; + } + + /** * Always returns true, since a selector always returns a bag of * attribute values. |