Class PrincipalAttributeValueSource
java.lang.Object
com.webmethods.caf.faces.data.dir.PrincipalAttributeValueSource
- All Implemented Interfaces:
Serializable
Wrapper Object around a principal attribute value source. Contains
the attribute provider URI and the attribute name.
- Since:
- 7.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor creates an empty value source.PrincipalAttributeValueSource
(IThingID providerURI, String attrName) Constructor set the provider URI, provider URI string, and attribute name.PrincipalAttributeValueSource
(String rawValueString) Constructor creates a provider URI and attribute name from the string value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Is this object equal to the one passed in.Get the attribute name.Get the provider URI.Get the provider URI string.int
hashCode()
Create a hash code from the provider URI, URI string value, and the attribute name.void
setAttrName
(String attrName) Set the attribute name.void
setProviderURI
(IThingID providerURI) Set the provider URI.void
setProviderURIStr
(String providerURIStr) Set the provider URI string.toString()
Create a string value from the from the provider URI and the attribute name.
-
Field Details
-
SEPARATOR_CHAR
public static final char SEPARATOR_CHARThe separator character used to spit the provider URI from the attribute name.
- See Also:
-
providerURI
-
providerURIStr
-
attrName
-
-
Constructor Details
-
PrincipalAttributeValueSource
public PrincipalAttributeValueSource()Default constructor creates an empty value source. Provider URI, URI string, and attribute name are null. -
PrincipalAttributeValueSource
Constructor creates a provider URI and attribute name from the string value. The string value is checked for aSEPARATOR_CHAR
. If the character is present then the first part is used a the value for the provider URI string and the second part is used for the attribute name. Otherwise the string is use for the provider URI string.- Parameters:
rawValueString
- A character separated value for the provider URI String and attribute name.
-
PrincipalAttributeValueSource
Constructor set the provider URI, provider URI string, and attribute name. The provider URI string is set from the provider URI. Passing in a null value for provider URI will set the provider URI and URI string to null.- Parameters:
providerURI
- The provider URI.attrName
- The attribute name.
-
-
Method Details
-
getAttrName
Get the attribute name.- Returns:
- The attribute name.
-
setAttrName
Set the attribute name.- Parameters:
attrName
- The attribute name to set.
-
getProviderURI
Get the provider URI. If the provider URI is not set then try the provider URI string instead.- Returns:
- The providerURI.
- Throws:
RuntimeException
-
setProviderURI
Set the provider URI. Set the provider URI string to the string value of providerURI.- Parameters:
providerURI
- The providerURI to set.
-
getProviderURIStr
Get the provider URI string.- Returns:
- The providerURIStr
-
setProviderURIStr
Set the provider URI string. If a null or empty value is passed in the provider URI string is set to null. Set the provider URI to null.- Parameters:
providerURIStr
- The providerURIStr to set.
-
toString
Create a string value from the from the provider URI and the attribute name. Return a empty string if the provider URI and the attribute name are empty. -
hashCode
public int hashCode()Create a hash code from the provider URI, URI string value, and the attribute name. -
equals
Is this object equal to the one passed in.
-