Examples of ElementType


Examples of java.lang.annotation.ElementType

  public void shouldRetrieveEnumPropertyWithDefaultValue() {
    Map<String, Object> properties = new HashMap<String, Object>();

    ConfigurationPropertyReader reader = new ConfigurationPropertyReader( properties );

    ElementType value = reader.property( "foo", ElementType.class )
        .withDefault( ElementType.ANNOTATION_TYPE )
        .getValue();
    assertThat( value ).isEqualTo( ElementType.ANNOTATION_TYPE );
  }
View Full Code Here

Examples of net.percederberg.mibble.type.ElementType

                ParseException.ANALYSIS_ERROR,
                "referencing components is currently unsupported",
                child.getStartLine(),
                child.getStartColumn());
        }
        type = new ElementType(name, (MibType) getValue(child, 0));
        type.setComment(MibAnalyzerUtil.getComments(node));
        node.addValue(type);
        return node;
    }
View Full Code Here

Examples of net.sf.archimede.model.metadata.ElementType

        CustomTreeNode tnb = (CustomTreeNode) this.metadataTreeModel.getNode();
        ViewElement selectedViewElement = (ViewElement) tnb.getContent();
        String elementName = selectedViewElement.getSelectedNamedChildElementName();
       
        for (Iterator childTypesIt = selectedViewElement.getNamedChildElementTypes().iterator(); childTypesIt.hasNext(); ) {
            ElementType currentElementType = (ElementType) childTypesIt.next();
            if (currentElementType.getName().equals(elementName)) {
                if (currentElementType.getType().equals(NodesTypes.PREFIX + MetadataDao.VALUE_ELEMENT_HOLDER)) {
                   
                    Element element = DefaultElementImpl.createEmptyValueHolder(selectedViewElement.getMetadataParent(), selectedViewElement);
                    element.setName(elementName);
                    List elements = selectedViewElement.getElements();
                    if (elements == null) {
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.view.value.ElementType

        addElementProcessor(new DebugObjectView());
        addElementProcessor(new DebugUsersView());
        addElementProcessor(new DefaultValue());
        addElementProcessor(new EditLink());
        addElementProcessor(new EditObject());
        addElementProcessor(new ElementType());
        addElementProcessor(new Errors());
        addElementProcessor(new ErrorDetails());
        addElementProcessor(new ErrorMessage());
        addElementProcessor(new ErrorReference());
        addElementProcessor(new ExcludeField());
View Full Code Here

Examples of org.apache.vxquery.types.ElementType

                    }
                };
                break;

            case ELEMENT: {
                ElementType eType = (ElementType) nodeType;
                NameTest nameTest = eType.getNameTest();
                byte[] uri = nameTest.getUri();
                byte[] localName = nameTest.getLocalName();
                final UTF8StringPointable urip = (UTF8StringPointable) (uri == null ? null
                        : UTF8StringPointable.FACTORY.createPointable());
                final UTF8StringPointable localp = (UTF8StringPointable) (localName == null ? null
View Full Code Here

Examples of org.apache.wsif.schema.ElementType

      QName partQN = p.getElementName();
    if (partQN == null) {
      throw new WSIFException("part has no QName");
    }
     
    ElementType et = null;
    for (int i=0; i<l.size() && et==null; i++ ){
      Object o = l.get(i);
      if ( o instanceof ElementType ) {
                QName etQN = ((ElementType)o).getTypeName();
        if ( partQN.equals(etQN) ){
          et = (ElementType)o;
        }
      }
    }
    if (et == null) {
      throw new WSIFException("no ElementType found for part: " + p);
    }

    List children = et.getChildren();
    if (children == null || l.size()<1) {
      throw new WSIFException("no ComplexType children on elementType: " + et);
    }
   
    ComplexType ct = (ComplexType) children.get(0);
View Full Code Here

Examples of org.eclipse.egit.core.internal.rebase.RebaseInteractivePlan.ElementType

  private static class HighlightingColumnLabelProvider extends
      ColumnLabelProvider {

    @Override
    public Font getFont(Object element) {
      ElementType t = RebaseInteractiveView.getType(element);
      if (t != null && t == ElementType.DONE_CURRENT)
        return UIUtils.getBoldFont(JFaceResources.DIALOG_FONT);
      return super.getFont(element);
    }
View Full Code Here

Examples of org.eclipse.sapphire.ElementType

                final XmlElementBinding.Mapping[] mappings = xmlElementBindingAnnotation.mappings();
                this.xmlElementNames = new QName[ this.modelElementTypes.length ];
               
                for( int i = 0; i < this.modelElementTypes.length; i++ )
                {
                    final ElementType type = this.modelElementTypes[ i ];
                           
                    for( XmlElementBinding.Mapping mapping : mappings )
                    {
                        if( mapping.type() == type.getModelElementClass() )
                        {
                            final String mappingElementName = mapping.element().trim();
                           
                            if( mappingElementName.length() == 0 )
                            {
View Full Code Here

Examples of org.eclipse.wst.xml.xpath2.processor.internal.types.ElementType

        Evaluator eval = null;
        if (contextNode != null) {
           eval = new DefaultEvaluator(fDynamicContext, domDoc);          
           // change focus to the top most element
           ResultSequence nodeEvalRS = ResultSequenceFactory.create_new();
           nodeEvalRS.add(new ElementType(contextNode,
                           fDynamicContext.node_position(contextNode)));
           if (xPathDefaultNamespace != null) {
             fDynamicContext.add_namespace(null, xPathDefaultNamespace)
           }
          
View Full Code Here

Examples of org.jacoco.core.analysis.ICoverageNode.ElementType

      final ReportOutputFolder folder, final IHTMLReportContext context) {
    super(node, parent, folder, context);
  }

  public IReportVisitor visitChild(final ICoverageNode node) {
    final ElementType type = node.getElementType();
    switch (type) {
    case SOURCEFILE:
      final SourceFilePage sourcePage = new SourceFilePage(
          (SourceFileCoverage) node, this, folder, context);
      sourceFiles.put(node.getName(), sourcePage);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.