Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## gr.forth.ics.vrp.corevrp.model
Class Namespace

    java.lang.Object
      |
      +--gr.forth.ics.vrp.corevrp.model.Namespace

public class Namespace
extends Object

Constructor Summary
`Namespace(String uri)` Create a namespace

Method Summary
`void` | `addName(Resource res)` Test if the resource is defined in the NS
`boolean` | `contains(Resource res)` Test if the resource is defined in the NS
`HashSet` | `getNames()`
`String` | `getURI()` Returns the URI of the namespace
`static boolean` | `isDefinedINNamespace(Resource res, HashSet selectedNS)` Indicates if the resource is defined in one of the selected namespace(s). param res The resource reference

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Namespace

    public Namespace(String uri)

  Create a namespace

Method Detail

### getURI

    public String getURI()

  Returns the URI of the namespace

### contains

    public boolean contains(Resource res)

  Test if the resource is defined in the NS

### addName

    public void addName(Resource res)

  Test if the resource is defined in the NS

### getNames

    public HashSet getNames()

### isDefinedINNamespace

    public static boolean isDefinedINNamespace(Resource res,
                                               HashSet selectedNS)

  Indicates if the resource is defined in one of the selected namespace(s). param res The resource reference

  Returns:
    True if the resource is defined in one of the selected namespace(s), false otherwise.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD