com.ihr.xbrl.dts
Class MemberQName

java.lang.Object
  extended by com.ihr.xbrl.dts.MemberQName
All Implemented Interfaces:
Member<javax.xml.namespace.QName>, java.lang.Cloneable

public class MemberQName
extends java.lang.Object
implements Member<javax.xml.namespace.QName>

This is a domain member referenced as a QName and the dimension it belongs to

Author:
Ignacio

Constructor Summary
MemberQName(javax.xml.namespace.QName item, Dimension<?> dim)
           
 
Method Summary
 void addDomain(java.util.Collection<Member<?>> members)
          Adds a domain of members.
 MemberQName clone()
          Clone constructor
 int compareTo(Member<?> o2)
           
 Dimension<?> getDimension()
          Access back to the dimensions this member has belongs to
 java.util.Collection<Member<?>> getDomain()
          Returns the available sub members of this member.
 javax.xml.namespace.QName getMember()
          Access to the member.
 boolean hasDomain()
          Returns true if the member is a Domain and has sub-members
 boolean isAbstract()
          This method returns true if the member associated is abstract
 boolean isPrimary()
          This method returns true if the member is a primary item, otherwise is a dimension member of either an XDT dimension or a Virtual dimension
 XMLFragment toFragment(DTSContainer dts)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemberQName

public MemberQName(javax.xml.namespace.QName item,
                   Dimension<?> dim)
Method Detail

clone

public MemberQName clone()
Description copied from interface: Member
Clone constructor

Specified by:
clone in interface Member<javax.xml.namespace.QName>
Overrides:
clone in class java.lang.Object
Returns:

addDomain

public void addDomain(java.util.Collection<Member<?>> members)
Description copied from interface: Member
Adds a domain of members. This method should be called only if the member has no domain. This method should use the clone<T> method for adding copies of the members that are passed as parameter

Specified by:
addDomain in interface Member<javax.xml.namespace.QName>

getDimension

public Dimension<?> getDimension()
Description copied from interface: Member
Access back to the dimensions this member has belongs to

Specified by:
getDimension in interface Member<javax.xml.namespace.QName>
Returns:

getDomain

public java.util.Collection<Member<?>> getDomain()
Description copied from interface: Member
Returns the available sub members of this member. In the case there were no sub-members the function returns null.

Specified by:
getDomain in interface Member<javax.xml.namespace.QName>
Returns:
Collection of sub members of class T
See Also:
#hasDomain()}

getMember

public javax.xml.namespace.QName getMember()
Description copied from interface: Member
Access to the member.

Specified by:
getMember in interface Member<javax.xml.namespace.QName>
Returns:
element of the class of the Member type

hasDomain

public boolean hasDomain()
Description copied from interface: Member
Returns true if the member is a Domain and has sub-members

Specified by:
hasDomain in interface Member<javax.xml.namespace.QName>
Returns:
boolean value

isAbstract

public boolean isAbstract()
Description copied from interface: Member
This method returns true if the member associated is abstract

Specified by:
isAbstract in interface Member<javax.xml.namespace.QName>
Returns:
boolean

isPrimary

public boolean isPrimary()
Description copied from interface: Member
This method returns true if the member is a primary item, otherwise is a dimension member of either an XDT dimension or a Virtual dimension

Specified by:
isPrimary in interface Member<javax.xml.namespace.QName>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toFragment

public XMLFragment toFragment(DTSContainer dts)
Parameters:
container -
Returns:

compareTo

public int compareTo(Member<?> o2)
Specified by:
compareTo in interface Member<javax.xml.namespace.QName>
Returns:


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa