de.fhhannover.inform.trust.ifmapj.messages
Interface IdentifierHolder

All Known Subinterfaces:
MetadataHolder, PublishDelete, PublishNotify, PublishUpdate, ResultItem

public interface IdentifierHolder

Interface to access Identifier objects in elements that hold them. An element containing up to two Identifier objects, as it is the case for PublishUpdate, PublishNotify, PublishDelete ResultItem.

Author:
aw

Method Summary
 Identifier[] getIdentifier()
           
 Identifier getIdentifier1()
           
 Identifier getIdentifier2()
           
 boolean holdsLink()
           
 void setIdentifier1(Identifier id)
           
 void setIdentifier2(Identifier id)
           
 

Method Detail

getIdentifier1

Identifier getIdentifier1()
Returns:
the first identifier attached to this element.

setIdentifier1

void setIdentifier1(Identifier id)
Parameters:
id - the Identifier to be set.
Throws:
NullPointerException - if the given Identifier is null.

getIdentifier2

Identifier getIdentifier2()
Returns:
the second identifier attached to this element.

setIdentifier2

void setIdentifier2(Identifier id)
Parameters:
id - the Identifier to be set.
Throws:
NullPointerException - if the given Identifier is null.

getIdentifier

Identifier[] getIdentifier()
Returns:
an array of size 2, containing references to both identifiers, or null entries if appropriate

holdsLink

boolean holdsLink()
Returns:
true if both identifiers are non-null.


Copyright © 2012 Trust@FHH. All Rights Reserved.