當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。