com.bbn.swede.editor.visualeditors.restriction
Interface RestrictionWrapper.IRestrictionWrapper

Enclosing interface:
RestrictionWrapper

static interface RestrictionWrapper.IRestrictionWrapper

A wrapper for interacting with restrictions.

Author:
aperezlo

Method Summary
 Object getOnProperty()
          Retrieves the onProperty property for the restriction.
 String getOnPropertyURI()
          Retrieves the URI specified by the onProperty property of the restriction.
 String getRestrictionType()
          Retrieves the restriction type name.
 Object getRestrictionTypeNode()
          Retrieves a node representing the restriction type.
 String getRestrictionValueText()
          Retrieves the restriction value as text.
 Object getRestrictionValueTextNode()
          Retrieves the restriction value as a text node.
 URI getRestrictionValueURI()
          Retrieves the restriction value as a URI.
 IStatus setOnPropertyURI(URI uri)
          Sets the URI referred to by the onProperty property of the restriction.
 IStatus setRestictionType(String type)
          Sets the type of the restriction.
 IStatus setRestrictionValueText(String text)
          Sets the restriction value to a text string.
 void setRestrictionValueURI(URI uri)
          Sets the restriction value to a URI.
 

Method Detail

getOnProperty

public Object getOnProperty()
Retrieves the onProperty property for the restriction.

Returns:
The restriction's onProperty property

getOnPropertyURI

public String getOnPropertyURI()
Retrieves the URI specified by the onProperty property of the restriction.

Returns:
The onProperty URI, or null if there is no onProperty property.

getRestrictionTypeNode

public Object getRestrictionTypeNode()
Retrieves a node representing the restriction type.

Returns:
The restriction type

getRestrictionType

public String getRestrictionType()
Retrieves the restriction type name. See IRestrictionWrapper for restriction type labels.

Returns:
The restriction type name

getRestrictionValueURI

public URI getRestrictionValueURI()
Retrieves the restriction value as a URI.

Returns:
The restruction value URI, or null if the restriction has no value or it is not a URI.

setRestrictionValueURI

public void setRestrictionValueURI(URI uri)
Sets the restriction value to a URI.

Parameters:
uri - The URI

getRestrictionValueTextNode

public Object getRestrictionValueTextNode()
Retrieves the restriction value as a text node.

Returns:
The restriction value text, or null if the restriction has no value or it is not a text node.

getRestrictionValueText

public String getRestrictionValueText()
Retrieves the restriction value as text.

Returns:
The restriction value text, or null if the restriction has no value or it is not a text node.

setRestrictionValueText

public IStatus setRestrictionValueText(String text)
Sets the restriction value to a text string.

Parameters:
text - The new value.
Returns:
A status object indicating the success or failure of the operation.

setOnPropertyURI

public IStatus setOnPropertyURI(URI uri)
Sets the URI referred to by the onProperty property of the restriction.

Parameters:
uri - The URI
Returns:
A status object indicating the success or failure of the operation.

setRestictionType

public IStatus setRestictionType(String type)
Sets the type of the restriction. See IRestrictionWrapper for restriction type label constants.

Parameters:
type - The type.
Returns:
A status object indicating the success or failure of the operation.


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.