schema2template.model
Interface QNamed

All Known Subinterfaces:
QNamedPuzzleComponent
All Known Implementing Classes:
PuzzlePiece, PuzzlePieceSet, QNameValue, SourceCodeBaseClass

public interface QNamed

Unambiguously named (ns:localname) object.

Contract: Every object implementing hasQName should overwrite the toString() method and return the QName.

Warning: Using this interface does not imply any information about the equals() or hashCode() methods. So for using objects with qualified names in a Collection, you need information from the implementing class.


Method Summary
 String getLocalName()
          Get only localname
 String getNamespace()
          Get only namespace
 String getQName()
          Get the QName (i.e.
 

Method Detail

getQName

String getQName()
Get the QName (i.e. namespace:localname )

Returns:
full name

getNamespace

String getNamespace()
Get only namespace

Returns:
namespace

getLocalName

String getLocalName()
Get only localname

Returns:
localname


Copyright © 2010-2017 The Apache Software Foundation. All Rights Reserved.