org.obe.xpdl.model.data
Class ExternalReference

java.lang.Object
  extended byorg.obe.xpdl.model.data.ExternalReference
All Implemented Interfaces:
java.io.Serializable, Type

public final class ExternalReference
extends java.lang.Object
implements Type, java.io.Serializable

Reference to an external entity as defined in XPDL 1.0b1.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.obe.xpdl.model.data.Type
ARRAY_TYPE, BOOLEAN_TYPE, DATETIME_TYPE, DECLARED_TYPE, DEFAULT_TYPE, ENUMERATION_TYPE, EXTERNAL_REFERENCE_TYPE, FLOAT_TYPE, INTEGER_TYPE, LIST_TYPE, PERFORMER_TYPE, RECORD_TYPE, REFERENCE_TYPE, SCHEMA_TYPE, STRING_TYPE, UNDEFINED_TYPE, UNION_TYPE
 
Constructor Summary
ExternalReference()
           
ExternalReference(java.lang.String location)
          Construct a new ExternalReference.
ExternalReference(java.lang.String location, java.lang.String xref, java.lang.String namespace)
          Construct a new ExternalReference.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Type getImpliedType()
          Returns the actual type implied by this type.
 java.lang.String getLocation()
          Get the location URI.
 java.lang.String getNamespace()
          Get the namespace of the external reference.
 javax.xml.namespace.QName getQName()
           
 java.lang.String getXref()
          Get the identity of the entity in the external reference.
 int hashCode()
           
 boolean isAssignableFrom(Type fromType)
          Checks type compatibility in an assignment.
 void setLocation(java.lang.String location)
          Set the location URI.
 void setNamespace(java.lang.String namespace)
          Set the namespace of the external reference.
 void setXref(java.lang.String xref)
          Set the identity of the entity in the external reference.
 java.lang.String toString()
           
 int value()
          The data type's ordinal value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExternalReference

public ExternalReference()

ExternalReference

public ExternalReference(java.lang.String location)
Construct a new ExternalReference.

Parameters:
location - The location

ExternalReference

public ExternalReference(java.lang.String location,
                         java.lang.String xref,
                         java.lang.String namespace)
Construct a new ExternalReference.

Parameters:
location - The location
xref -
namespace -
Method Detail

value

public int value()
Description copied from interface: Type
The data type's ordinal value.

Specified by:
value in interface Type
Returns:
Ordinal value: Type.STRING_TYPE, Type.FLOAT_TYPE, Type.INTEGER_TYPE, Type.REFERENCE_TYPE, Type.DATETIME_TYPE, Type.BOOLEAN_TYPE, Type.PERFORMER_TYPE, Type.DECLARED_TYPE, Type.SCHEMA_TYPE, Type.EXTERNAL_REFERENCE_TYPE, Type.RECORD_TYPE, Type.UNION_TYPE, Type.ENUMERATION_TYPE, Type.ARRAY_TYPE, Type.LIST_TYPE

getLocation

public java.lang.String getLocation()
Get the location URI.

Returns:
The location URI

setLocation

public void setLocation(java.lang.String location)
Set the location URI.

Parameters:
location - The new location URI

getXref

public java.lang.String getXref()
Get the identity of the entity in the external reference. This value is optional and this method may return null.

Returns:
The entity identity

setXref

public void setXref(java.lang.String xref)
Set the identity of the entity in the external reference. This value is optional and can be set to null.

Parameters:
xref - The entity identity

getNamespace

public java.lang.String getNamespace()
Get the namespace of the external reference. The value is optional and this method may return null.

Returns:
The namespace

setNamespace

public void setNamespace(java.lang.String namespace)
Set the namespace of the external reference. This value is optional and can be set to null.

Parameters:
namespace - The namespace

getQName

public javax.xml.namespace.QName getQName()

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

getImpliedType

public Type getImpliedType()
Description copied from interface: Type
Returns the actual type implied by this type. Some types behave as references to other types.

Specified by:
getImpliedType in interface Type
Returns:
The implied type.

isAssignableFrom

public boolean isAssignableFrom(Type fromType)
Description copied from interface: Type
Checks type compatibility in an assignment.

Specified by:
isAssignableFrom in interface Type
Parameters:
fromType - The type of the 'rvalue'.
Returns:
true if a value of type fromType can be assigned or converted to a value of type toType.

toString

public java.lang.String toString()


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.