public class PrincipalAttributeValueSource extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
attrName |
protected IThingID |
providerURI |
protected String |
providerURIStr |
static char |
SEPARATOR_CHAR
The separator character used to spit the provider URI
from the attribute name.
|
Constructor and Description |
---|
PrincipalAttributeValueSource()
Default 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Is this object equal to the one passed in.
|
String |
getAttrName()
Get the attribute name.
|
IThingID |
getProviderURI()
Get the provider URI.
|
String |
getProviderURIStr()
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.
|
String |
toString()
Create a string value from the from the provider URI and the attribute name.
|
public static final char SEPARATOR_CHAR
The separator character used to spit the provider URI from the attribute name.
protected IThingID providerURI
protected String providerURIStr
protected String attrName
public PrincipalAttributeValueSource()
public PrincipalAttributeValueSource(String rawValueString)
SEPARATOR_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.rawValueString
- A character separated value for the provider URI String and attribute name.public PrincipalAttributeValueSource(IThingID providerURI, String attrName)
providerURI
- The provider URI.attrName
- The attribute name.public String getAttrName()
public void setAttrName(String attrName)
attrName
- The attribute name to set.public IThingID getProviderURI()
RuntimeException
public void setProviderURI(IThingID providerURI)
providerURI
- The providerURI to set.public String getProviderURIStr()
public void setProviderURIStr(String providerURIStr)
providerURIStr
- The providerURIStr to set.public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
obj
- The object to compare to.Object.equals(java.lang.Object)