UML 모델
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
UML (Unified Modeling Language) 모델은 데이터에 대한 형식과 무관한 설명을 나타냅니다. 데이터 요소의 주요 이점은 데이터 요소와 이러한 요소 간의 관계를 정의하고 설명한다는 것입니다. 이러한 모델 기반 접근 방식을 사용하면 데이터가 잘 구조화되어 있고 수정해도 될 가능성이 높습니다.
UML 클래스 관계
UML 모델의 주 클래스는 XML 스키마에서 주 요소로 표현됩니다. UML 클래스 간의 다양한 유형의 관계는 스키마에서 XML 요소가 구조화되는 방식을 결정합니다.
다음과 같은 세 가지 클래스 관계가 있습니다.
- 감독 작곡
- 클래스가 하위 요소 또는 하위 요소로 구성되는 경우입니다. 예를 들어 선거 보고서를 만드는 경우 선거 보고서는 선거로 구성됩니다. XML 스키마에서
Election
요소는 ElectionReport
요소의 하위 요소로 생성됩니다.
- '유형' 또는 '다음의 인스턴스'
- 추상 클래스가 구체적인 클래스를 구현하는 경우입니다. 예를 들어 콘크리트를 만들면 구체적인 클래스로 구현됩니다. 즉, 후보 경연은 일종의 경연입니다. XML 스키마에서
Contest
는 추상 XML 요소로 생성되고 CandidateContest
요소의 확장 기반 역할을 합니다.
- 직접 연결
- 요소에 두 번째 요소와 연결된 식별자가 있는 다른 요소가 포함된 경우입니다. 예를 들어 후보자를 정당과 연결하거나 연결했을 때 이러한 일이 발생합니다. XML 스키마에서
Candidate
요소에는 Party
요소와 연결된 식별자가 포함된 PartyId
요소가 포함됩니다.
다음 다이어그램은 세 가지 유형의 관계를 보여줍니다.

UML 모델 예시
다음 다이어그램은 Contest
항목과 두 가지 유형의 Contest
(CandidateContest
및 PartyContest
)를 보여줍니다.

다음 다이어그램은 CandidateContest
의 클래스 다이어그램을 대략적으로 보여줍니다.

다음 다이어그램은 PartyContest
의 클래스 다이어그램을 대략적으로 보여줍니다.

달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-21(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-08-21(UTC)"],[[["The Unified Modeling Language (UML) model provides a standardized way to describe data, focusing on data elements and their relationships for better structure and adaptability."],["UML class relationships, including directed composition, \"type of\" or \"instance of\", and directed association, influence the structure of XML elements within a schema."],["Directed composition results in sub-elements, \"type of\" or \"instance of\" relationships lead to abstract and concrete element definitions, and directed association establishes links between elements through identifiers."],["UML diagrams visually represent these relationships, showcasing examples like contest entities and their various types, along with detailed views of specific contest structures."]]],[]]