public class ScopeSet
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Set |
strScopes |
protected HashMap |
unknownAttributes |
protected URISet |
uriScopes |
| Constructor and Description |
|---|
ScopeSet()
Constructor.
|
ScopeSet(int initialCapacity) |
ScopeSet(ScopeSet set)
Copy Constructor.
|
ScopeSet(java.lang.String[] scopes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(ScopeSet scopes)
Adds set of scopes to this.
|
void |
addScope(java.lang.String scope)
Adds a single scope to set of scopes.
|
void |
addScope(URI scope)
Adds a single scope to set of scopes.
|
void |
addUnknownAttribute(QName attributeName,
java.lang.Object value)
Adds unknown attribute.
|
static ScopeSet |
construct(java.lang.String scopes)
Constructs a scope set from a string of scopes separated by ' '.
|
boolean |
contains(java.lang.String scope) |
boolean |
containsAll(ScopeSet others)
Checks if a given scope set is completely contained in this list.
|
boolean |
equals(java.lang.Object obj) |
URI |
getScope(int index) |
java.lang.String |
getScopesAsString() |
java.lang.String[] |
getScopesAsStringArray() |
URISet |
getScopesAsUris()
Gets a set of uris.
|
java.lang.Object |
getUnknownAttribute(QName attributeName)
Gets unknown attribute by given attribute qname.
|
HashMap |
getUnknownAttributes()
Gets all unknown attributes.
|
int |
hashCode() |
boolean |
isEmpty()
true - if this does not have any scopes.
|
boolean |
removeScope(java.lang.String scope) |
boolean |
removeScope(URI scope) |
void |
setScopes(java.lang.String[] scopes)
Sets scopes.
|
int |
size()
Gets size of scope list.
|
java.lang.String |
toString() |
protected volatile Set strScopes
protected volatile URISet uriScopes
protected HashMap unknownAttributes
public ScopeSet()
public ScopeSet(int initialCapacity)
public ScopeSet(java.lang.String[] scopes)
scopes - list of scopespublic ScopeSet(ScopeSet set)
public static ScopeSet construct(java.lang.String scopes)
scopes - scopespublic java.lang.String toString()
toString in class java.lang.Objectpublic URI getScope(int index)
public int size()
public URISet getScopesAsUris()
public java.lang.String[] getScopesAsStringArray()
public java.lang.String getScopesAsString()
public boolean isEmpty()
public java.lang.Object getUnknownAttribute(QName attributeName)
attributeName - public HashMap getUnknownAttributes()
public boolean removeScope(java.lang.String scope)
public boolean removeScope(URI scope)
public void addScope(java.lang.String scope)
scope - scope to add.public void addScope(URI scope)
scope - scope to add.public void addAll(ScopeSet scopes)
scopes - scopes to add.public void addUnknownAttribute(QName attributeName, java.lang.Object value)
attributeName - value - public boolean containsAll(ScopeSet others)
others - public boolean contains(java.lang.String scope)
public void setScopes(java.lang.String[] scopes)
scopes - the scopes to setpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object