public class Elements extends Object
Modifier and Type | Field and Description |
---|---|
static de.toem.pattern.element.CellDescriptors |
cells |
static de.toem.pattern.classifier.Classifiers |
classifier |
static de.toem.pattern.element.CoverDescriptors |
covers |
static de.toem.pattern.element.disclosure.Disclosures |
disclosures |
static java.util.List<IElement> |
EMPTY |
static de.toem.pattern.element.exploits.ExploitDescriptors |
exploits |
static de.toem.pattern.element.instancer.Instancers |
instancers |
static de.toem.pattern.element.ElementNotifier |
notifier |
static de.toem.pattern.element.ElementProviders |
providers |
static de.toem.pattern.element.serializer.SerializerDesciptors |
serializers |
Constructor and Description |
---|
Elements() |
Modifier and Type | Method and Description |
---|---|
static void |
addElementListener(IElementListener listener) |
static boolean |
allowsAdd(IElement target,
java.util.List<IElement> sources) |
static boolean |
allowsAdd(java.util.List<IElement> elements,
java.util.List<IElement> sources) |
static boolean |
allowsRemove(java.util.List<IElement> elements) |
static boolean |
areBound(java.util.List<IElement> elements) |
static boolean |
canBeModified(java.util.List<IElement> elements) |
static boolean |
canBeRenamed(java.util.List<IElement> elements) |
static boolean |
doNotDepend(java.util.List<IElement> elements) |
static void |
enableNotifications(boolean enable) |
static java.util.List<IElement> |
extractBoundElements(java.util.Collection<IElement> elements,
boolean fillWithNulls) |
static java.util.List<ICell> |
extractCells(java.util.Collection<IElement> elements,
boolean fillWithNulls) |
static java.util.List<IElement> |
extractChapters(java.util.Collection<IElement> elements,
boolean fillWithNulls) |
static java.util.List<IElement> |
extractContainer(java.util.Collection<IElement> elements,
boolean fillWithNulls) |
static java.util.Set<IElement> |
extractContainerSet(java.util.Collection<IElement> elements) |
static java.util.List<IElement> |
extractDocuments(java.util.Collection<IElement> elements,
boolean fillWithNulls) |
static java.util.List<IElement> |
extractDocumentsAndChapters(java.util.Collection<IElement> elements,
boolean fillWithNulls) |
static java.util.List<IElement> |
extractDocumentsAndChapters(java.util.Collection<IElement> elements,
Class<? extends ICell> c) |
static java.util.List<IElement> |
extractDocumentsAndChapters(java.util.Collection<IElement> elements,
Class<? extends ICell>[] cs) |
static java.util.List<IElement> |
extractResourceContainer(java.util.List<IElement> elements,
boolean fillWithNulls) |
static java.util.List<IElement> |
extractResourceElements(java.util.Collection<IElement> elements,
boolean fillWithNulls) |
static java.util.List<IElement> |
extractWithContainer(java.util.Collection<IElement> elements,
IElement container) |
static void |
fireElementAboutToBeModified(de.toem.pattern.element.ElementModifierEvent event) |
static void |
fireElementAboutToBeModified(de.toem.pattern.element.ElementModifierEvent event,
java.util.List<IElementListener> listeners) |
static void |
fireElementBound(IElement element) |
static void |
fireElementBound(IElement element,
java.util.List<IElementListener> listeners) |
static void |
fireElementLoaded(IElement element,
boolean coverOnly) |
static void |
fireElementLoaded(IElement element,
boolean coverOnly,
java.util.List<IElementListener> listeners) |
static void |
fireElementModified(de.toem.pattern.element.ElementModifierEvent event) |
static void |
fireElementModified(de.toem.pattern.element.ElementModifierEvent event,
java.util.List<IElementListener> listeners) |
static void |
fireElementResetted(IElement element) |
static void |
fireElementResetted(IElement element,
java.util.List<IElementListener> listeners) |
static void |
fireElementUnbound(IElement element,
boolean remembered) |
static void |
fireElementUnbound(IElement element,
boolean remembered,
java.util.List<IElementListener> listeners) |
static String |
getCellData(IElement element) |
static java.util.List<ICell> |
getCells(ICell cell) |
static IElement |
getElement(Object resource) |
static IElement[] |
getElementArray(java.util.Collection<IElement> elements) |
static java.util.List<IElement> |
getElements(ICell cell) |
static java.util.List<IElement> |
getElements(IElement... elements) |
static java.util.List<IElement> |
getElements(java.util.List<ICell> cells) |
static java.util.List<IElement> |
getElements(Object[] resources) |
static Object |
getResource(String resourcePath) |
static Object[] |
getResources(java.util.Collection<IElement> elements,
boolean keepElement) |
static Object[] |
getResources(java.util.Collection<IElement> elements,
Class<?> c,
boolean keepElement) |
static boolean |
haveCells(java.util.List<IElement> elements) |
static boolean |
haveCells(java.util.List<IElement> elements,
Class<? extends ICell> c) |
static boolean |
haveCells(java.util.List<IElement> elements,
Class<? extends ICell>[] cs) |
static boolean |
inOneContainer(java.util.List<IElement> elements) |
static boolean |
isContainer(IElement element) |
static boolean |
isContainer(java.util.List<IElement> elements) |
static boolean |
isContainerOf(IElement container,
java.util.List<IElement> elements,
boolean any) |
static boolean |
isOneOf(IElement element,
java.util.List<IElement> elements) |
static boolean |
noWs(java.util.List<IElement> elements) |
static boolean |
onlyC(java.util.List<IElement> elements) |
static boolean |
onlyCells(java.util.List<IElement> elements,
Class<? extends ICell> c) |
static boolean |
onlyCells(java.util.List<IElement> elements,
Class<? extends ICell>[] cs) |
static boolean |
onlyDC(java.util.List<IElement> elements,
Class<? extends ICell> c) |
static boolean |
onlyDC(java.util.List<IElement> elements,
Class<? extends ICell>[] cs) |
static boolean |
onlyDocumentsAndChapters(java.util.List<IElement> elements) |
static boolean |
onlyFd(java.util.List<IElement> elements) |
static boolean |
onlyOpen(java.util.List<IElement> elements) |
static boolean |
onlyP(java.util.List<IElement> elements) |
static boolean |
onlyResourceElements(java.util.List<IElement> elements) |
static boolean |
onlyValidResources(java.util.List<IElement> elements) |
static void |
removeElementListener(IElementListener listener) |
static void |
sortByOrder(java.util.List<IElement> elements) |
public static final java.util.List<IElement> EMPTY
public static de.toem.pattern.element.ElementNotifier notifier
public static de.toem.pattern.element.ElementProviders providers
public static de.toem.pattern.element.CellDescriptors cells
public static de.toem.pattern.element.CoverDescriptors covers
public static de.toem.pattern.element.exploits.ExploitDescriptors exploits
public static de.toem.pattern.element.disclosure.Disclosures disclosures
public static de.toem.pattern.classifier.Classifiers classifier
public static de.toem.pattern.element.instancer.Instancers instancers
public static de.toem.pattern.element.serializer.SerializerDesciptors serializers
public static void addElementListener(IElementListener listener)
public static void removeElementListener(IElementListener listener)
public static void fireElementModified(de.toem.pattern.element.ElementModifierEvent event)
public static void fireElementAboutToBeModified(de.toem.pattern.element.ElementModifierEvent event)
public static void fireElementResetted(IElement element)
public static void fireElementLoaded(IElement element, boolean coverOnly)
public static void fireElementBound(IElement element)
public static void fireElementUnbound(IElement element, boolean remembered)
public static void fireElementModified(de.toem.pattern.element.ElementModifierEvent event, java.util.List<IElementListener> listeners)
public static void fireElementAboutToBeModified(de.toem.pattern.element.ElementModifierEvent event, java.util.List<IElementListener> listeners)
public static void fireElementResetted(IElement element, java.util.List<IElementListener> listeners)
public static void fireElementLoaded(IElement element, boolean coverOnly, java.util.List<IElementListener> listeners)
public static void fireElementBound(IElement element, java.util.List<IElementListener> listeners)
public static void fireElementUnbound(IElement element, boolean remembered, java.util.List<IElementListener> listeners)
public static boolean onlyCells(java.util.List<IElement> elements, Class<? extends ICell> c)
public static boolean onlyCells(java.util.List<IElement> elements, Class<? extends ICell>[] cs)
public static boolean onlyP(java.util.List<IElement> elements)
public static boolean onlyDocumentsAndChapters(java.util.List<IElement> elements)
public static boolean onlyC(java.util.List<IElement> elements)
public static boolean onlyFd(java.util.List<IElement> elements)
public static boolean noWs(java.util.List<IElement> elements)
public static boolean inOneContainer(java.util.List<IElement> elements)
public static boolean isContainer(java.util.List<IElement> elements)
public static boolean isContainer(IElement element)
public static boolean onlyResourceElements(java.util.List<IElement> elements)
public static boolean onlyOpen(java.util.List<IElement> elements)
public static boolean onlyValidResources(java.util.List<IElement> elements)
public static boolean allowsAdd(java.util.List<IElement> elements, java.util.List<IElement> sources)
public static boolean allowsRemove(java.util.List<IElement> elements)
public static boolean canBeModified(java.util.List<IElement> elements)
public static boolean canBeRenamed(java.util.List<IElement> elements)
public static boolean doNotDepend(java.util.List<IElement> elements)
public static boolean isContainerOf(IElement container, java.util.List<IElement> elements, boolean any)
public static java.util.List<IElement> extractBoundElements(java.util.Collection<IElement> elements, boolean fillWithNulls)
public static java.util.List<IElement> extractResourceElements(java.util.Collection<IElement> elements, boolean fillWithNulls)
public static java.util.List<IElement> extractDocuments(java.util.Collection<IElement> elements, boolean fillWithNulls)
public static java.util.List<IElement> extractChapters(java.util.Collection<IElement> elements, boolean fillWithNulls)
public static java.util.List<IElement> extractDocumentsAndChapters(java.util.Collection<IElement> elements, boolean fillWithNulls)
public static java.util.List<IElement> extractDocumentsAndChapters(java.util.Collection<IElement> elements, Class<? extends ICell> c)
public static java.util.List<IElement> extractDocumentsAndChapters(java.util.Collection<IElement> elements, Class<? extends ICell>[] cs)
public static java.util.List<ICell> extractCells(java.util.Collection<IElement> elements, boolean fillWithNulls)
public static java.util.List<IElement> extractContainer(java.util.Collection<IElement> elements, boolean fillWithNulls)
public static java.util.Set<IElement> extractContainerSet(java.util.Collection<IElement> elements)
public static java.util.List<IElement> extractWithContainer(java.util.Collection<IElement> elements, IElement container)
public static java.util.List<IElement> extractResourceContainer(java.util.List<IElement> elements, boolean fillWithNulls)
public static Object[] getResources(java.util.Collection<IElement> elements, boolean keepElement)
public static Object[] getResources(java.util.Collection<IElement> elements, Class<?> c, boolean keepElement)
public static void sortByOrder(java.util.List<IElement> elements)
public static boolean areBound(java.util.List<IElement> elements)
public static boolean haveCells(java.util.List<IElement> elements)
public static boolean haveCells(java.util.List<IElement> elements, Class<? extends ICell> c)
public static boolean haveCells(java.util.List<IElement> elements, Class<? extends ICell>[] cs)
public static void enableNotifications(boolean enable)