Package org.eclipse.xsd.impl

Examples of org.eclipse.xsd.impl.XSDElementDeclarationImpl


        assertNotNull(decimal);
    }

    private XSDElementDeclaration makeDeclaration(final int digits, final BigDecimal minExc,
        final BigDecimal minInc, final BigDecimal maxInc, final BigDecimal maxExc) {
        return new XSDElementDeclarationImpl() {
                public XSDTypeDefinition getTypeDefinition() {
                    return new XSDSimpleTypeDefinitionImpl() {
                            public XSDTotalDigitsFacet getTotalDigitsFacet() {
                                return new XSDTotalDigitsFacetImpl() {
                                        public int getValue() {
View Full Code Here


                    String elName = att.getName().toString();
                    Object xsd = att.getUserData().get(XSDElementDeclaration.class);
                    if (xsd != null && xsd instanceof XSDElementDeclarationImpl) {
                        // get the prefixed name if possible
                        // otherwise defaults to the full name with namespace URI
                        XSDElementDeclarationImpl xsdEl = (XSDElementDeclarationImpl) xsd;
                        elName = xsdEl.getQName();
                    }
                    w.write(prepCSVField(elName));
                    i++;
                }
            }
View Full Code Here

            CMElementDeclaration result = modelQuery
                .getCMElementDeclaration((Element) node);

            // If the XSD is not found this check will fail.
            if (result instanceof XSDElementDeclarationAdapter) {
              XSDElementDeclarationImpl elementDeclaration = (XSDElementDeclarationImpl) ((XSDElementDeclarationAdapter) result)
                  .getKey();

              ComponentDefinition componentDefinition = null;

              // 1. Get component definition for directly attached
              // annotations.
              if (elementDeclaration.getAnnotation() != null) {
                componentDefinition = processAnnotations(element,
                    elementDeclaration.getAnnotation()
                        .getApplicationInformation(), parserContext);
              }

              // 2. If no directly attached annotation could be
              // found, try the referenced type definition if any.
              if (componentDefinition == null
                  && elementDeclaration.getTypeDefinition() != null
                  && elementDeclaration.getTypeDefinition().getAnnotation() != null) {
                componentDefinition = processAnnotations(element,
                    elementDeclaration.getTypeDefinition().getAnnotation()
                        .getApplicationInformation(), parserContext);

              }

              return componentDefinition;
View Full Code Here

TOP

Related Classes of org.eclipse.xsd.impl.XSDElementDeclarationImpl

Copyright © 2018 www.massapicom. 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.