public static CPluginCustomization createCustomization(final Element element) { final CPluginCustomization customization = new CPluginCustomization( element, null); return customization; }
public static CPluginCustomization createCustomization( final Element element) { final CPluginCustomization customization = new CPluginCustomization( element, null); return customization; }
public static CPluginCustomization createCustomization(final Element element) { final CPluginCustomization customization = new CPluginCustomization(element, null); return customization; }
public static CPluginCustomization createCustomization(final Element element) { final CPluginCustomization customization = new CPluginCustomization( element, null); return customization; }
throw new IllegalArgumentException("Could not marhsall object into an element."); return new CPluginCustomization(element, null); } catch (JAXBException jaxbex) { throw new IllegalArgumentException("Could not marhsall object into an element.", jaxbex);
public static List<CPluginCustomization> getPropertyCustomizationsInClass(CClassInfo classInfo, CPropertyInfo propertyInfo, QName propertyCustomizationName) { final List<CPluginCustomization> foundPropertyCustomizations = new LinkedList<CPluginCustomization>(); final List<CPluginCustomization> classCustomizations = CustomizationUtils.getCustomizations(classInfo); for (CPluginCustomization classCustomization : classCustomizations) { if (fixNull(classCustomization.element.getNamespaceURI()) .equals(propertyCustomizationName.getNamespaceURI()) && fixNull(classCustomization.element.getLocalName()) .equals(propertyCustomizationName.getLocalPart()) && propertyInfo.getName(false).equals(classCustomization.element.getAttribute("name"))) { final Element classCustomizationElement = classCustomization.element; final NodeList nodes = classCustomizationElement.getChildNodes(); final int length = nodes.getLength(); for (int index = 0; index < length; index++) { final Node node = nodes.item(index); if (node.getNodeType() == Node.ELEMENT_NODE) { final Element element = (Element) node; classCustomization.markAsAcknowledged(); final CPluginCustomization propertyCustomization = new CPluginCustomization(element, classCustomization.locator); propertyCustomization.markAsAcknowledged(); foundPropertyCustomizations.add(propertyCustomization); } } } } return foundPropertyCustomizations; }
final CPluginCustomization propertyCustomization = new CPluginCustomization(element, classCustomization.locator); propertyCustomization.markAsAcknowledged();
/** * Gets the list of top-level {@link CPluginCustomization}s. */ private CCustomizations getGlobalCustomizations() { CCustomizations r=null; for( Element e : DOMUtil.getChildElements(dom) ) { if(!model.options.pluginURIs.contains(e.getNamespaceURI())) continue; // this isn't a plugin customization if(r==null) r = new CCustomizations(); r.add(new CPluginCustomization(e, DOMLocator.getLocationInfo(e))); } if(r==null) r = CCustomizations.EMPTY; return new CCustomizations(r); }
/** * Gets the list of top-level {@link CPluginCustomization}s. */ private CCustomizations getGlobalCustomizations() { CCustomizations r=null; for( Element e : DOMUtil.getChildElements(dom) ) { if(!model.options.pluginURIs.contains(e.getNamespaceURI())) continue; // this isn't a plugin customization if(r==null) r = new CCustomizations(); r.add(new CPluginCustomization(e, DOMLocator.getLocationInfo(e))); } if(r==null) r = CCustomizations.EMPTY; return new CCustomizations(r); }
/** * Gets the list of top-level {@link CPluginCustomization}s. */ private CCustomizations getGlobalCustomizations() { CCustomizations r=null; for( Element e : DOMUtil.getChildElements(dom) ) { if(!model.options.pluginURIs.contains(e.getNamespaceURI())) continue; // this isn't a plugin customization if(r==null) r = new CCustomizations(); r.add(new CPluginCustomization(e, DOMLocator.getLocationInfo(e))); } if(r==null) r = CCustomizations.EMPTY; return new CCustomizations(r); }
/** * Gets the list of top-level {@link CPluginCustomization}s. */ private CCustomizations getGlobalCustomizations() { CCustomizations r=null; for( Element e : DOMUtil.getChildElements(dom) ) { if(!model.options.pluginURIs.contains(e.getNamespaceURI())) continue; // this isn't a plugin customization if(r==null) r = new CCustomizations(); r.add(new CPluginCustomization(e, DOMLocator.getLocationInfo(e))); } if(r==null) r = CCustomizations.EMPTY; return new CCustomizations(r); }
/** * Gets the list of top-level {@link CPluginCustomization}s. */ private CCustomizations getGlobalCustomizations() { CCustomizations r=null; for( Element e : DOMUtil.getChildElements(dom) ) { if(!model.options.pluginURIs.contains(e.getNamespaceURI())) continue; // this isn't a plugin customization if(r==null) r = new CCustomizations(); r.add(new CPluginCustomization(e, DOMLocator.getLocationInfo(e))); } if(r==null) r = CCustomizations.EMPTY; return new CCustomizations(r); }
/** * Gets the list of {@link CPluginCustomization}s from this. * * <p> * Note that calling this method marks all those plug-in customizations * as 'used'. So call it only when it's really necessary. */ public CCustomizations toCustomizationList() { CCustomizations r=null; for( BIDeclaration d : this ) { if(d instanceof BIXPluginCustomization) { BIXPluginCustomization pc = (BIXPluginCustomization) d; pc.markAsAcknowledged(); if(!Ring.get(Model.class).options.pluginURIs.contains(pc.getName().getNamespaceURI())) continue; // this isn't a plugin customization if(r==null) r = new CCustomizations(); r.add(new CPluginCustomization(pc.element,pc.getLocation())); } } if(r==null) r = CCustomizations.EMPTY; return new CCustomizations(r); } /** An instance with the empty contents. */
/** * Gets the list of {@link CPluginCustomization}s from this. * * <p> * Note that calling this method marks all those plug-in customizations * as 'used'. So call it only when it's really necessary. */ public CCustomizations toCustomizationList() { CCustomizations r=null; for( BIDeclaration d : this ) { if(d instanceof BIXPluginCustomization) { BIXPluginCustomization pc = (BIXPluginCustomization) d; pc.markAsAcknowledged(); if(!Ring.get(Model.class).options.pluginURIs.contains(pc.getName().getNamespaceURI())) continue; // this isn't a plugin customization if(r==null) r = new CCustomizations(); r.add(new CPluginCustomization(pc.element,pc.getLocation())); } } if(r==null) r = CCustomizations.EMPTY; return new CCustomizations(r); } /** An instance with the empty contents. */
/** * Gets the list of {@link CPluginCustomization}s from this. * * <p> * Note that calling this method marks all those plug-in customizations * as 'used'. So call it only when it's really necessary. */ public CCustomizations toCustomizationList() { CCustomizations r=null; for( BIDeclaration d : this ) { if(d instanceof BIXPluginCustomization) { BIXPluginCustomization pc = (BIXPluginCustomization) d; pc.markAsAcknowledged(); if(!Ring.get(Model.class).options.pluginURIs.contains(pc.getName().getNamespaceURI())) continue; // this isn't a plugin customization if(r==null) r = new CCustomizations(); r.add(new CPluginCustomization(pc.element,pc.getLocation())); } } if(r==null) r = CCustomizations.EMPTY; return new CCustomizations(r); } /** An instance with the empty contents. */
/** * Gets the list of {@link CPluginCustomization}s from this. * * <p> * Note that calling this method marks all those plug-in customizations * as 'used'. So call it only when it's really necessary. */ public CCustomizations toCustomizationList() { CCustomizations r=null; for( BIDeclaration d : this ) { if(d instanceof BIXPluginCustomization) { BIXPluginCustomization pc = (BIXPluginCustomization) d; pc.markAsAcknowledged(); if(!Ring.get(Model.class).options.pluginURIs.contains(pc.getName().getNamespaceURI())) continue; // this isn't a plugin customization if(r==null) r = new CCustomizations(); r.add(new CPluginCustomization(pc.element,pc.getLocation())); } } if(r==null) r = CCustomizations.EMPTY; return new CCustomizations(r); } /** An instance with the empty contents. */
/** * Gets the list of {@link CPluginCustomization}s from this. * * <p> * Note that calling this method marks all those plug-in customizations * as 'used'. So call it only when it's really necessary. */ public CCustomizations toCustomizationList() { CCustomizations r=null; for( BIDeclaration d : this ) { if(d instanceof BIXPluginCustomization) { BIXPluginCustomization pc = (BIXPluginCustomization) d; pc.markAsAcknowledged(); if(!Ring.get(Model.class).options.pluginURIs.contains(pc.getName().getNamespaceURI())) continue; // this isn't a plugin customization if(r==null) r = new CCustomizations(); r.add(new CPluginCustomization(pc.element,pc.getLocation())); } } if(r==null) r = CCustomizations.EMPTY; return new CCustomizations(r); } /** An instance with the empty contents. */