@XMLBindable public class UESURI extends java.lang.Object implements URI
Modifier and Type | Class and Description |
---|---|
static class |
UESURI.DeferrableUESURI
Class used for definition of UESURI as constant.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
action
UseCase action of this UESURI.
|
private UESURIPart |
authority
Authority of this UESURI.
|
private java.util.List<UESURIPart> |
entityParts
Entity part for this UESURI.
|
private java.lang.String |
fragment
Fragment of this UESURI.
|
protected static int |
HC_INC
Hash code step increment.
|
protected static int |
HC_INIT
Initial value for hash code.
|
private java.util.Map<java.lang.String,java.lang.Object> |
parameters
Parameters of this UESURI.
|
private java.lang.String |
scheme
Scheme of this UESURI.
|
static java.lang.String |
SCHEME
Scheme of this UESURI class.
|
private UESURIPart |
territory
Territory id of this UESURI.
|
private java.lang.String |
uesuri
The string representation of UESURI.
|
private UESURIPart |
useCase
UseCase id of this UESURI.
|
Modifier | Constructor and Description |
---|---|
protected |
UESURI()
Creates a new instance of UESURI.
|
(package private) |
UESURI(java.lang.String aScheme,
Creates a new instance of UESURI.
|
(package private) |
UESURI(java.lang.String aScheme,
Creates a new instance of UESURI.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
allUESURIPartsContainId()
Checks that all UESURI parts in entity part contains Id.
|
static UESURI |
deferrableParseURI(java.lang.String aString) |
(package private) java.lang.String |
entityPartListToString(java.util.List<UESURIPart> aPartList)
Converts UESURI parts to string form.
|
boolean |
equals(java.lang.Object aObject)
Indicates whether some other object is also an UESURI equal to this one.
|
java.lang.String |
getAction() |
protected UESURIPart |
getAuthority() |
java.lang.String |
getAuthorityCode() |
java.lang.String |
getAuthorityId() |
java.lang.String |
getEntityPart() |
java.util.List<UESURIPart> |
getEntityPartList()
Return list of UESURIParts, which forms entity part.
|
java.lang.String |
getFragment() |
java.util.Map<java.lang.String,java.lang.Object> |
getParameters() |
protected java.lang.String |
getParametersAsString()
Returns parameters of this UESURI in string form.
|
java.lang.String |
getScheme()
Returns scheme of this URI.
|
java.lang.String |
getSchemeSpecificPart()
Returns scheme specific part.
|
protected UESURIPart |
getTerritory() |
java.lang.String |
getTerritoryCode() |
java.lang.String |
getTerritoryId() |
protected java.lang.String |
getUESURI()
Converts this instance to String form.
|
protected UESURIPart |
getUseCase() |
java.lang.String |
getUseCaseCode() |
java.lang.String |
getUseCaseId() |
int |
hashCode() |
private void |
checkClassType()
Tests, whether is invocation of this method performed only on instance
of the class platform UESURI (not on a child implementation).
|
private boolean |
isEmpty(java.util.List<UESURIPart> aEntityParts)
Tests, whether contains the list of UESURI part mandatory entities.
|
private boolean |
isEntityPartEqual(UESURI aOther)
Checks, whether the entity part of the specified UESURI refers to the same entity as this UESURI.
|
private boolean |
isSame(java.lang.String aFirst,
Test for equality of two strings.
|
static UESURI |
parseURI(java.lang.String aString)
Parses string into UESURI instance.
|
protected void |
setUESURI(java.lang.String aValue)
Initializes this instance according to purveyed UESURI in String form.
|
protected void |
setUESURIInternal(java.lang.String aValue) |
protected void |
setUriParts(java.lang.String aScheme,
Initializes values of this instance of UESURI.
|
protected void |
setUriParts(java.lang.String aScheme,
Initializes values of this instance of UESURI.
|
java.lang.String |
toString() |
private java.lang.String |
toStringInternal()
Creates string representation of this instance of UESURI.
|
aScheme
- UESURI scheme.aAuthority
- Authority part.aTerritory
- Territory scheme.aEntityParts
- Entity parts.aUseCase
- Use case part.aParameters
- Parameters.aFragment
- Fragment.aScheme
- UESURI scheme.aAuthority
- Authority part.aTerritory
- Territory scheme.aEntityParts
- Entity parts.aUseCase
- Use case part.aAction
- Use case action.aParameters
- Parameters.aFragment
- Fragment.aValue
- UESURI in String form.getSchemeSpecificPart
in interface URI
URI.getSchemeSpecificPart()
aPartList
- List of UESURI parts.aString
- Parsed string.InvalidFormatRTException
- When parsed string doesn't contain valid UESURI in String form.UESURIHelper.isInvariable
.
For comparison of ambiguous UESURIs use method UESURIHelper.isSame
.equals
in class java.lang.Object
InsufficientUESURIRTException
Object.equals(java.lang.Object)
aOther
- Compared UESURI.aFirst
- First tested string.aSecond
- Second tested string.hashCode
in class java.lang.Object
Object.hashCode()
true
if all UESURI parts contains Id. The value
false
if some UESURI part has no Id.toString
in class java.lang.Object
Object.toString()
aScheme
- Scheme.aAuthority
- Authority part.aTerritory
- Territory part.aEntityParts
- Entity parts.aUseCase
- Use case part.aParameters
- Parameters.aFragment
- Fragment.aScheme
- Scheme.aAuthority
- Authority part.aTerritory
- Territory part.aEntityParts
- Entity parts.aUseCase
- Use case part.aAction
- Use case action.aParameters
- Parameters.aFragment
- Fragment.aEntityParts
- List of UESURI entity parts.URI