org.overlord.sramp.common.derived
Class IndexedArtifactCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<BaseArtifactType>
                  extended by org.overlord.sramp.common.derived.IndexedArtifactCollection
All Implemented Interfaces:
Serializable, Cloneable, Iterable<BaseArtifactType>, Collection<BaseArtifactType>, Deque<BaseArtifactType>, List<BaseArtifactType>, Queue<BaseArtifactType>

public class IndexedArtifactCollection
extends LinkedList<BaseArtifactType>

A List implementation that also indexes the WSDL related artifacts added to it. This index can be used for fast lookup of various types of derived WSDL content.

Author:
eric.wittmann@redhat.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
IndexedArtifactCollection()
          Constructor.
 
Method Summary
 boolean add(BaseArtifactType artifact)
           
 Binding lookupBinding(QName name)
          Find a binding by QName.
 ElementDeclaration lookupElement(QName name)
          Find an element by QName.
 Message lookupMessage(QName name)
          Find a message by QName.
 Operation lookupOperation(QName portTypeName, String operationName)
          Find an operation by Port Type and QName.
 PortType lookupPortType(QName name)
          Find a port type by QName.
 XsdType lookupType(QName name)
          Find a type (simple or complex) by QName.
 
Methods inherited from class java.util.LinkedList
add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

IndexedArtifactCollection

public IndexedArtifactCollection()
Constructor.

Method Detail

add

public boolean add(BaseArtifactType artifact)
Specified by:
add in interface Collection<BaseArtifactType>
Specified by:
add in interface Deque<BaseArtifactType>
Specified by:
add in interface List<BaseArtifactType>
Specified by:
add in interface Queue<BaseArtifactType>
Overrides:
add in class LinkedList<BaseArtifactType>
See Also:
LinkedList.add(java.lang.Object)

lookupElement

public ElementDeclaration lookupElement(QName name)
Find an element by QName.

Parameters:
name -

lookupType

public XsdType lookupType(QName name)
Find a type (simple or complex) by QName.

Parameters:
name -

lookupMessage

public Message lookupMessage(QName name)
Find a message by QName.

Parameters:
name -

lookupPortType

public PortType lookupPortType(QName name)
Find a port type by QName.

Parameters:
name -

lookupOperation

public Operation lookupOperation(QName portTypeName,
                                 String operationName)
Find an operation by Port Type and QName.

Parameters:
portTypeName -
operationName -

lookupBinding

public Binding lookupBinding(QName name)
Find a binding by QName.

Parameters:
name -


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.