|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.portal.tools.resource.ResourceIDBuilder<T>
public class ResourceIDBuilder<T extends ResourceID>
Parses and builds a ResourceID.
| Nested Class Summary | |
|---|---|
protected static class |
ResourceIDBuilder.ParseContext
Context for parsing a resource URN. |
| Constructor Summary | |
|---|---|
ResourceIDBuilder()
Constructor. |
|
ResourceIDBuilder(ResourceType resourceType)
Constructor. |
|
| Method Summary | |
|---|---|
ResourceIDBuilder<T> |
clone()
Create a clone of this ResourceIDBuilder. |
protected ResourceIDBuilder.ParseContext |
createParseContext(String resourceURN)
Create a ParseContext for the given URN. |
T |
createResourceID()
Create the ResourceID. |
ResourceType |
getExpectedResourceType()
|
ResourceType |
getResourceType()
Get the ResourceType. |
String |
getResourceURN()
Get the URN of the referrent resource. |
protected void |
parseResourcePath(ResourceIDBuilder.ParseContext parseContext)
Parse the resource path of from specified URN. |
protected void |
parseResourceTypeNamespaceURI(ResourceIDBuilder.ParseContext parseContext)
Parse the namespace URI of the resource type from the specified URN. |
protected void |
parseResourceURN(ResourceIDBuilder.ParseContext parseContext)
Parse the specified URN. |
ResourceIDBuilder<T> |
parseResourceURN(String resourceURN)
Parse the given URN. |
void |
reset()
Reset the state of this ResourceIDBuilder. |
protected ResourceType |
resolveResourceType(String namespaceURI)
Resolve the ResourceType for the given namespace URI. |
protected void |
setExpectedResourceType(ResourceType resourceType)
|
void |
setResourceType(ResourceType resourceType)
Change the ResourceType. |
protected void |
setResourceURN(String resourceURN)
Change the URN of the referrent resource. |
String |
toString()
Get a string representation of the ResourceID. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceIDBuilder()
public ResourceIDBuilder(ResourceType resourceType)
| Method Detail |
|---|
public final ResourceType getExpectedResourceType()
public ResourceIDBuilder<T> clone()
throws CloneNotSupportedException
ResourceIDBuilder.
clone in class ObjectResourceIDBuilder
CloneNotSupportedExceptionpublic ResourceIDBuilder<T> parseResourceURN(String resourceURN)
resourceURN - the URN of the referrent resource
ResourceIDBuilderprotected ResourceIDBuilder.ParseContext createParseContext(String resourceURN)
ParseContext for the given URN.
resourceURN - the URN of the referrent resource
ParseContext for the given URNprotected void parseResourceURN(ResourceIDBuilder.ParseContext parseContext)
parseContext - the ParseContextprotected void parseResourceTypeNamespaceURI(ResourceIDBuilder.ParseContext parseContext)
parseContext - the ParseContextprotected ResourceType resolveResourceType(String namespaceURI)
ResourceType for the given namespace URI.
ResourceType for the given namespace URIprotected void parseResourcePath(ResourceIDBuilder.ParseContext parseContext)
parseContext - the ParseContextpublic final String getResourceURN()
null if the URN must be computedprotected final void setResourceURN(String resourceURN)
resourceURN - the URN of the referrent resource
or null if the URN must be computedpublic final ResourceType getResourceType()
ResourceType.
ResourceTypepublic final void setResourceType(ResourceType resourceType)
ResourceType.
resourceType - the ResourceTypeprotected void setExpectedResourceType(ResourceType resourceType)
public T createResourceID()
ResourceID.
ResourceIDpublic void reset()
ResourceIDBuilder.
public String toString()
ResourceID.
toString in class ObjectResourceID
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||