Esri Geoportal Server
1.0

com.esri.gpt.server.assertion.components
Class AsnSubject

java.lang.Object
  extended by com.esri.gpt.server.assertion.components.AsnSubject

public class AsnSubject
extends Object

Represents an assertion subject.


Constructor Summary
AsnSubject()
          Default constructor.
AsnSubject(AsnSubject objectToDuplicate)
          Construct by duplicating an existing object.
AsnSubject(String urnPrefix)
          Constructs with a URN prefix and type part.
 
Method Summary
 AsnSubject duplicate()
          Produces a deep clone of the object.
 boolean getRequiresValuePart()
          Gets the flag indicating whether or not a value part is required.
 String getURN()
          Gets the URN.
 String getURNPrefix()
          Gets the URN prefix.
 String getValuePart()
          Gets the value part associated with the subject URN.
 boolean isType(String urnPrefix)
           
 void setRequiresValuePart(boolean requiresValuePart)
          Sets the flag indicating whether or not a value part is required.
 void setURN(String urn)
          Sets the URN.
 void setURNPrefix(String urnPrefix)
          Sets the URN prefix.
 void setValuePart(String valuePart)
          Sets the value part associated with the subject URN.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsnSubject

public AsnSubject()
Default constructor.


AsnSubject

public AsnSubject(AsnSubject objectToDuplicate)
Construct by duplicating an existing object.

Parameters:
objectToDuplicate - the object to duplicate

AsnSubject

public AsnSubject(String urnPrefix)
Constructs with a URN prefix and type part.

Parameters:
urnPrefix - the URN prefix
Method Detail

getRequiresValuePart

public boolean getRequiresValuePart()
Gets the flag indicating whether or not a value part is required.

Returns:
true if a value part is required

setRequiresValuePart

public void setRequiresValuePart(boolean requiresValuePart)
Sets the flag indicating whether or not a value part is required.

Parameters:
requiresValuePart - true if a value part is required

getURN

public String getURN()
Gets the URN.

Returns:
the URN

setURN

public void setURN(String urn)
Sets the URN.

Parameters:
urn - the URN

getURNPrefix

public String getURNPrefix()
Gets the URN prefix.

Returns:
the URN prefix

setURNPrefix

public void setURNPrefix(String urnPrefix)
Sets the URN prefix.

Parameters:
urnPrefix - the URN prefix

getValuePart

public String getValuePart()
Gets the value part associated with the subject URN.

Returns:
the value part

setValuePart

public void setValuePart(String valuePart)
Sets the value part associated with the subject URN.

Parameters:
valuePart - the value part

duplicate

public AsnSubject duplicate()
Produces a deep clone of the object.
The duplication constructor is invoked.
return new AsnSubject(this);

Returns:
the duplicated object

isType

public boolean isType(String urnPrefix)

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.