public class ServerLogicalTargetList
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,JP2KServerLogicalTarget> |
logicalTargets
Contains the list of loaded logical targets.
|
Constructor and Description |
---|
ServerLogicalTargetList()
Constructor of LogicalTargetList.
|
Modifier and Type | Method and Description |
---|---|
void |
add(JP2KServerLogicalTarget logicalTarget)
Appends the specific logical target to the list of logical targets.
|
boolean |
equals(java.lang.String target,
java.lang.String tid)
Check if the logical target identified
|
JP2KServerLogicalTarget |
getByTarget(java.lang.String target)
Gets a logical target from the list.
|
JP2KServerLogicalTarget |
getByTID(java.lang.String tid)
Gets a logical target from the list.
|
boolean |
isEmpty()
Returns
true if the list contains no elements. |
void |
list(java.io.PrintStream out)
Prints this Logical Target List fields out to the specified output
stream.
|
int |
size()
Returns the number of elements in the list.
|
java.lang.String |
toString() |
private java.util.Map<java.lang.String,JP2KServerLogicalTarget> logicalTargets
public ServerLogicalTargetList()
public void add(JP2KServerLogicalTarget logicalTarget)
logicalTarget
- logical target to be appended to the list.public JP2KServerLogicalTarget getByTID(java.lang.String tid)
tid
).
tid
- definition in TargetField.target
.tid is not in the list, it returns null
public JP2KServerLogicalTarget getByTarget(java.lang.String target)
target
.
target
- definition in TargetField.target
.target is not in the list, it returns null
public boolean equals(java.lang.String target, java.lang.String tid)
target
- definition in TargetField.target
.tid
- definition in TargetField.tid
.true
if the target
belongs to the
target identifier tid
.public boolean isEmpty()
true
if the list contains no elements. Otherwise,
returns false.true
if the list contains no elements.public int size()
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
out
- an output stream.
CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Group on Interactive Coding of Images (GICI) (contact)