private static boolean isSynthesized(final Augmentations augs) { final HTMLEventInfo info = (augs == null) ? null : (HTMLEventInfo) augs.getItem(FEATURE_AUGMENTATIONS); return info != null && info.isSynthesized(); } }
/** Returns true if the information provided is synthesized. */ protected static boolean synthesized(Augmentations augs) { HTMLEventInfo info = (HTMLEventInfo)augs.getItem(AUGMENTATIONS); return info != null ? info.isSynthesized() : false; } // synthesized(Augmentations):boolean
AttributePSVI getAttributePSVIByName(String uri, String localname) { if (fAttributes != null) { Augmentations augs = fAttributes.getAugmentations(uri, localname); if (augs != null) { return (AttributePSVI) augs.getItem(Constants.ATTRIBUTE_PSVI); } } return null; } }
/** Returns true if the information provided is synthesized. */ protected static boolean synthesized(Augmentations augs) { HTMLEventInfo info = (HTMLEventInfo)augs.getItem(AUGMENTATIONS); return info != null ? info.isSynthesized() : false; } // synthesized(Augmentations):boolean
/** * Returns true if the information provided is synthesized. */ protected static boolean synthesized(Augmentations augs) { HTMLEventInfo info = (HTMLEventInfo) augs.getItem(AUGMENTATIONS); return info != null ? info.isSynthesized() : false; } // synthesized(Augmentations):boolean
/** * Returns true if the information provided is synthesized. */ protected static boolean synthesized(Augmentations augs) { HTMLEventInfo info = (HTMLEventInfo) augs.getItem(AUGMENTATIONS); return info != null ? info.isSynthesized() : false; } // synthesized(Augmentations):boolean
private static boolean isSynthesized(final Augmentations augs) { final HTMLEventInfo info = (augs == null) ? null : (HTMLEventInfo) augs.getItem(FEATURE_AUGMENTATIONS); return info != null && info.isSynthesized(); } }
AttributePSVI getAttributePSVI(int index) { if (fAttributes != null) { Augmentations augs = fAttributes.getAugmentations(index); if (augs != null) { return (AttributePSVI) augs.getItem(Constants.ATTRIBUTE_PSVI); } } return null; }
public AttributePSVI getAttributePSVIByName(String uri, String localname){ return (AttributePSVI)fAttributesProxy.fAttributes.getAugmentations(uri, localname).getItem(Constants.ATTRIBUTE_PSVI); }
public boolean isDeclared(String qName) { int index = getIndex(qName); if (index == -1) { throw new IllegalArgumentException(qName); } return Boolean.TRUE.equals( fAttributes.getAugmentations(index).getItem( Constants.ATTRIBUTE_DECLARED)); }
public boolean isDeclared(int index) { if (index < 0 || index >= fAttributes.getLength()) { throw new ArrayIndexOutOfBoundsException(index); } return Boolean.TRUE.equals( fAttributes.getAugmentations(index).getItem( Constants.ATTRIBUTE_DECLARED)); }
public boolean isDeclared(String uri, String localName) { int index = getIndex(uri, localName); if (index == -1) { throw new IllegalArgumentException(localName); } return Boolean.TRUE.equals( fAttributes.getAugmentations(index).getItem( Constants.ATTRIBUTE_DECLARED)); }
public boolean isDeclared(int index) { if (index < 0 || index >= fAttributes.getLength()) { throw new ArrayIndexOutOfBoundsException(index); } return Boolean.TRUE.equals( fAttributes.getAugmentations(index).getItem( Constants.ATTRIBUTE_DECLARED)); }
/** * Copy constructor * @param augs the object to copy */ HTMLAugmentations(final Augmentations augs) { for (final Enumeration keys=augs.keys(); keys.hasMoreElements(); ) { final String key = (String) keys.nextElement(); Object value = augs.getItem(key); if (value instanceof HTMLScanner.LocationItem) { value = new HTMLScanner.LocationItem((HTMLScanner.LocationItem) value); } fItems.put(key, value); } }
public boolean isDeclared(String qName) { int index = getIndex(qName); if (index == -1) { throw new IllegalArgumentException(qName); } return Boolean.TRUE.equals( fAttributes.getAugmentations(index).getItem( Constants.ATTRIBUTE_DECLARED)); }
public boolean isDeclared(String uri, String localName) { int index = getIndex(uri, localName); if (index == -1) { throw new IllegalArgumentException(localName); } return Boolean.TRUE.equals( fAttributes.getAugmentations(index).getItem( Constants.ATTRIBUTE_DECLARED)); }
/** * Copy constructor * @param augs the object to copy */ HTMLAugmentations(final Augmentations augs) { for (final Enumeration keys=augs.keys(); keys.hasMoreElements(); ) { final String key = (String) keys.nextElement(); Object value = augs.getItem(key); if (value instanceof HTMLScanner.LocationItem) { value = new HTMLScanner.LocationItem((HTMLScanner.LocationItem) value); } fItems.put(key, value); } }
public TypeInfo getElementTypeInfo() { checkStateElement(); if (fElementAugs == null) { return null; } ElementPSVI psvi = (ElementPSVI)fElementAugs.getItem(Constants.ELEMENT_PSVI); return getTypeInfoFromPSVI(psvi); }
private TypeInfo getAttributeType( int index ) { checkStateAttribute(); if (index < 0 || fAttributes.getLength() <= index) { throw new IndexOutOfBoundsException(Integer.toString(index)); } Augmentations augs = fAttributes.getAugmentations(index); if (augs == null) { return null; } AttributePSVI psvi = (AttributePSVI)augs.getItem(Constants.ATTRIBUTE_PSVI); return getTypeInfoFromPSVI(psvi); }
@Override protected Element createElementNode(QName qName) { final Element created = super.createElementNode(qName); if (qName.equals(currentQName) && currentAugmentations != null) { final ElementLocation elementLocation = createElementLocation( currentAugmentations.getItem(AUGMENTATIONS_FEATURE) ); created.setUserData(ELEMENT_LOCATION, elementLocation, null); } return created; }