当前位置: 首页>>代码示例>>Java>>正文


Java XmlElements类代码示例

本文整理汇总了Java中javax.xml.bind.annotation.XmlElements的典型用法代码示例。如果您正苦于以下问题:Java XmlElements类的具体用法?Java XmlElements怎么用?Java XmlElements使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


XmlElements类属于javax.xml.bind.annotation包,在下文中一共展示了XmlElements类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setComptesCommunaux

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name="comptesCommunaux")
   @XmlElements({@XmlElement(name="compteCommunal",     type=CompteCommunal.class)})
/**
 * @param comptesCommunaux the comptesCommunaux to set
 */
public void setComptesCommunaux(List<CompteCommunal> comptesCommunaux) {
	this.comptesCommunaux = comptesCommunaux;
}
 
开发者ID:georchestra,项目名称:cadastrapp,代码行数:9,代码来源:RelevePropriete.java

示例2: setProprietes

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name="proprietes")
   @XmlElements({@XmlElement(name="propriete",   type=ProprieteBatie.class)})
/**
 * @param proprietes
 */
public void setProprietes(List<ProprieteBatie> proprietes) {
	this.proprietes = proprietes;
}
 
开发者ID:georchestra,项目名称:cadastrapp,代码行数:9,代码来源:ProprietesBaties.java

示例3: setParcelleList

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name="parcelles")
   @XmlElements({@XmlElement(name="parcelle",     type=Parcelle.class)})
/**
 * @param parcelleList the parcelleList to set
 */
public void setParcelleList(List<Parcelle> parcelleList) {
	this.parcelleList = parcelleList;
}
 
开发者ID:georchestra,项目名称:cadastrapp,代码行数:9,代码来源:BordereauParcellaire.java

示例4: setProprietaires

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name = "proprietaires")
@XmlElements({ @XmlElement(name = "Proprietaire", type = Proprietaire.class) })
/**
 * @param proprietaires
 */
public void setProprietaires(List<Proprietaire> proprietaires) {
	this.proprietaires = proprietaires;
}
 
开发者ID:georchestra,项目名称:cadastrapp,代码行数:9,代码来源:Lot.java

示例5: supportsCriteriaValue

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
static boolean supportsCriteriaValue(Class<? extends SingleValuedPredicate> simplePredicateClass, CriteriaValue<?> value) {
    if (simplePredicateClass == null) {
        throw new IllegalArgumentException("simplePredicateClass was null");
    }
    if (value == null) {
        throw new IllegalArgumentException("valueClass was null");
    }
    XmlElements elementsAnnotation = CriteriaSupportUtils.findXmlElementsAnnotation(simplePredicateClass);
    if (elementsAnnotation != null) {
        XmlElement[] elements = elementsAnnotation.value();
        for (XmlElement element : elements) {
            if (value.getClass().equals(element.type())) {
                return true;
            }
        }
    }
    return false;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:19,代码来源:CriteriaSupportUtils.java

示例6: setActivites

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElements({
		@XmlElement(name="activity"),
		@XmlElement(name="activity-alias")
})
public void setActivites(List<Activity> activites) {
	this.activites = activites;
}
 
开发者ID:ernw,项目名称:AndroTickler,代码行数:8,代码来源:Application.java

示例7: getValues

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name = "values")
@XmlElements({
        @XmlElement(name = "byte", type = Byte.class),
        @XmlElement(name = "double", type = Double.class),
        @XmlElement(name = "float", type = Float.class),
        @XmlElement(name = "short", type = Short.class),
        @XmlElement(name = "integer", type = Integer.class),
        @XmlElement(name = "long", type = Long.class),
        @XmlElement(name = "string", type = String.class)
})
public List<Object> getValues() {
    return values;
}
 
开发者ID:gchq,项目名称:stroom-query,代码行数:14,代码来源:Key.java

示例8: getResources

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElements({ @XmlElement(name = "resource") })
@XmlElementWrapper(name = "resources")
public final List<MCRIViewClientResource> getResources() {
    return resources.entries()
        .stream()
        .map(entry -> new MCRIViewClientResource(entry.getKey(), entry.getValue()))
        .collect(Collectors.toList());
}
 
开发者ID:MyCoRe-Org,项目名称:mycore,代码行数:9,代码来源:MCRViewerConfiguration.java

示例9: getProperties

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElements({ @XmlElement(name = "property") })
@XmlElementWrapper(name = "properties")
public final List<MCRIViewClientProperty> getProperties() {
    return properties.entrySet()
        .stream()
        .map(entry -> new MCRIViewClientProperty(entry.getKey(), entry.getValue()))
        .collect(Collectors.toList());
}
 
开发者ID:MyCoRe-Org,项目名称:mycore,代码行数:9,代码来源:MCRViewerConfiguration.java

示例10: getConnections

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name = "connections")
@XmlElements({
    @XmlElement(type = MutableSiblingConnection.class, name = "sibling-connection"),
    @XmlElement(type = MutableParentInToChildInConnection.class, name = "parent-to-child-connection"),
    @XmlElement(type = MutableChildOutToParentOutConnection.class, name = "child-to-parent-connection"),
    @XmlElement(type = MutableShortCircuitConnection.class, name = "short-circuit-connection")
})
@Override
public final List<MutableConnection<?>> getConnections() {
    return connections;
}
 
开发者ID:cloudkeeper-project,项目名称:cloudkeeper,代码行数:12,代码来源:MutableParentModule.java

示例11: getTargets

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name = "targets")
@XmlElements({
    @XmlElement(type = JAXBAdapters.JAXBElementPatternTarget.class, name = "element-regex"),
    @XmlElement(type = JAXBAdapters.JAXBElementTarget.class, name = "element"),
    @XmlElement(type = JAXBAdapters.JAXBExecutionTracePatternTarget.class, name = "execution-trace-regex"),
    @XmlElement(type = JAXBAdapters.JAXBExecutionTraceTarget.class, name = "execution-trace")
})
@Override
public List<MutableOverrideTarget<?>> getTargets() {
    return overrideTargets;
}
 
开发者ID:cloudkeeper-project,项目名称:cloudkeeper,代码行数:12,代码来源:MutableOverride.java

示例12: getGateways

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@JsonProperty( value = "gateways" )
@XmlElementWrapper( name = "gateways" )
@XmlElements( { @XmlElement( name = "bulksms", type = BulkSmsGatewayConfig.class ),
    @XmlElement( name = "clickatell", type = ClickatellGatewayConfig.class ),
    @XmlElement( name = "http", type = GenericHttpGatewayConfig.class ) })
public List<SmsGatewayConfig> getGateways()
{
    return gateways;
}
 
开发者ID:dhis2,项目名称:dhis2-core,代码行数:10,代码来源:SmsConfiguration.java

示例13: getExternalVariables

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper(name = "external-variables")
@XmlElements({@XmlElement(name="property-list-variable", type=JaxbPropertyListVariable.class),
    @XmlElement(name="relative-date-variable", type=JaxbRelativeDateVariable.class),
    @XmlElement(name="property-variable", type=JaxbPropertyValueVariable.class),
    @XmlElement(name="fulltext-variable", type=JaxbFullTextVariable.class)})
@Override
public List<ExternalVariable<?>> getExternalVariables() {
    return externalVariables;
}
 
开发者ID:Enterprise-Content-Management,项目名称:documentum-rest-client-java,代码行数:10,代码来源:JaxbSearchTemplate.java

示例14: getExpressions

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
@XmlElementWrapper
@XmlElements({@XmlElement(name="expression-set", type=JaxbExpressionSet.class),
    @XmlElement(name="fulltext", type=JaxbFullTextExpression.class),
    @XmlElement(name="property", type=JaxbPropertyExpression.class),
    @XmlElement(name="property-list", type=JaxbPropertyListExpression.class),
    @XmlElement(name="property-range", type=JaxbPropertyRangeExpression.class),
    @XmlElement(name="relative-date", type=JaxbRelativeDateExpression.class)})
public List<Expression> getExpressions() {
    return expressions;
}
 
开发者ID:Enterprise-Content-Management,项目名称:documentum-rest-client-java,代码行数:11,代码来源:JaxbSearch.java

示例15: processElements

import javax.xml.bind.annotation.XmlElements; //导入依赖的package包/类
private void processElements(RoundEnvironment roundEnv, TypeElement classElement, XmlElements elements, VariableElement fieldElement,
                             Set<EipOption> eipOptions, String prefix) {
    Elements elementUtils = processingEnv.getElementUtils();

    String fieldName;
    fieldName = fieldElement.getSimpleName().toString();
    if (elements != null) {
        String kind = "element";
        String name = fieldName;
        name = prefix + name;

        TypeMirror fieldType = fieldElement.asType();
        String fieldTypeName = fieldType.toString();

        String defaultValue = findDefaultValue(fieldElement, fieldTypeName);
        String docComment = findJavaDoc(elementUtils, fieldElement, fieldName, name, classElement, true);

        boolean required = true;
        required = findRequired(fieldElement, required);

        // gather oneOf of the elements
        Set<String> oneOfTypes = new TreeSet<String>();
        for (XmlElement element : elements.value()) {
            String child = element.name();
            oneOfTypes.add(child);
        }

        EipOption ep = new EipOption(name, kind, fieldTypeName, required, defaultValue, docComment, false, false, null, true, oneOfTypes);
        eipOptions.add(ep);
    }
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:32,代码来源:EipAnnotationProcessor.java


注:本文中的javax.xml.bind.annotation.XmlElements类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。